Sign in
Google apps
Main menu
Post a Comment On:
Blogpad
"Object reference not set to an instance of an object"
No comments yet. -
1 – 0 of 0
When coding callouts:
string qualifiedStatus = opportunity.new_qualifiedstatus.Value.ToString();
new_qualifiedstatus is a picklist. If we haven't selected any value from that picklist we will get a null reference exception (not an empty or null string). So the right way to assign this would be:
if(opportunity.new_qualifiedstatus != null)
{
string qualifiedStatus = opportunity.new_qualifiedstatus.Value.ToString();
}
posted by fc at
1:45 PM
on Oct 30, 2007
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
This blog does not allow anonymous comments.
Google Account
You will be asked to sign in after submitting your comment.
Please prove you're not a robot
"Object reference not set to an instance of an object"
No comments yet. -