I have one line of code that throws an exception, and when the catch(Exception ex) line executes, ex is NULL. Am I interpreting this correctly? If this is happening, does anyone have an idea of how this could occur? I am using a lot of Telerik RAD controls, could that be causing an issue?
In the Watch window this information displays:
Name: ex
Value: Object reference not set to an instance of an object
`try
{
RadScriptManager sm = new RadScriptManager();
sm.ID = "ScriptManager1";
}
catch(Exception ex)
{
System.Console.WriteLine("Error: "+ex.Message);
}`
The exception is thrown when I access sm to set its ID.