title: What is the best way to reduce cyclomatic complexity when validating data?
body: <p>Right now I'm working on a web application that receives a significant amount of data from a database that has a potential to return null results. When going through the cyclomatic complexity for the application a number of functions are weighing in between 10 - 30. For the most part the majority of the functions with the high numbers have a lot of lines similar to the following:</p>
  
  <pre><code>If Not oraData.IsDBNull(4) Then row("Field") = oraData.GetString(4)
  </code></pre>
  
  <p>Which leads me to my question, what is the best way to go about trying to bring these numbers down? Right now I'm looking at having the majority of the functions below 10. </p>