title: Exception: Object reference not set to an instance of an object
body: <p>I have been using the code,</p>
  
  <pre><code>  object amountObject = MySqlDAL.ExecuteQuerySingle(query);
  
          if (amountObject.Equals(System.DBNull.Value))
          {
              return amount;
          }
  </code></pre>
  
  <p>here in some point am getting an exception "Object reference not set to an instance of an object." from the sentence amountObject.Equals(System.DBNull.Value). Its working fine for some set of data.</p>
  
  <p>What may be the reason? Can any one please help me out?</p>