title: Cannot perform runtime binding on a null reference MVC
body: <p>I am trying to represent whether user has a valid email address in a MVC html document. It seems fairly straight forward, but I keep bumping into the same error.</p>
  
  <p>Server Error in '/' Application.
  Cannot perform runtime binding on a null reference</p>
  
  <p>Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference</p>
  
  <p>Source Error:</p>
  
  <pre><code> (html document) 
  
  Line 31:     {
  Line 32:         &lt;div&gt;
  Line 33:             &lt;p&gt;@string.Format(Model.User.FirstName)&lt;/p&gt;;
  Line 34:         &lt;/div&gt;
  Line 35:     }
  </code></pre>
  
  <p>In the 'User' model:</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Gets the full name.
      /// &lt;/summary&gt;
      public string FullName
      {
          get
          {
              return string.Format("{0} {1}", this.FirstName, this.LastName);
          }
      }
  </code></pre>
  
  <p>In the model: </p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Gets or sets the user.
      /// &lt;/summary&gt;
      public User User { get; set; }
  </code></pre>
  
  <p>Does anyone have any ideas why this might occur?</p>
  
  <p>Thankyou in advance</p>