title: Nullable object must have a value?
body: <p>On the line: <code>bool travel = fill.travel.Value;</code> I am getting the following error:</p>
  
  <blockquote>
    <p>Nullable object must have a value</p>
  </blockquote>
  
  <p>and i am not sure why. All I want to do is get the value in the database of travel which is currently false. Any help would be appreciated. </p>
  
  <pre><code>using (var db = new DataClasses1DataContext())
  {
      var fill = (from f in db.expenseHdrs
                  where f.rptNo == getPkRowReport()
                  select f).FirstOrDefault();
  
      txtReportDesc.Text = fill.description;
      txtPeriod.Text = fill.period;
      txtPurpose.Text = fill.purpose;
  
      bool travel = fill.travel.Value;
      chkTravel.Checked = travel 
   }
  </code></pre>