title: How to check null object in razor view editor template
body: <p>In my ViewModel I have created a property of type Object and from controller I am passing a value of that object type property. Now I have created a Editor template to handle that Object type. Here is my code for that:</p>
  
  <pre><code>   &lt;div class="form-group"&gt;
           @Html.EditorFor(x =&gt; Model.testProp)
     &lt;/div&gt;
  </code></pre>
  
  <p>Based on the value type this editor template is calling different types of editor templates(String,Date, int).
  Now how can I handle null/empty string using editor template? If my Model.testProp is null then how can I call the editor template which returns empty TextField?</p>