Getting a NullReferenceException
<p>I'm getting this: </p>

<pre><code>    private object setReportValues(object report, FormCollection values)
    {
        PropertyInfo[] properties = report.GetType().GetProperties();
        foreach (PropertyInfo property in properties)
        {
            string val = values.GetValue(property.Name).ToString();
            property.SetValue(report, val, null);
        }
        return report;
    }
</code></pre>

<p>Exception is on <code>string val = values.GetValue(property.Name).ToString();</code>. Do I have to check for nulls before?</p>
