result = m_dbHandler.SmartGetDataSet(sqlCommand);
That line must be handling an exception and returning a null. You need to check if (result == null) then the operation was not sucessful.
if (result == null)
Response.Redirect("~/error.aspx");
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735