You need to sign in to do that
Don't have an account?

Developer Console Error: System.NullPointerException: Attempt to de-reference a null object
Hi-
I am writing this code snippet in Developer console:
List<Lead> ledLst = [Select Id, Name From Lead where ID IN : Trigger.NewMap.keySet()];
System.debug('$$$$$$$'+ledLst);
But, I am getting the beloe Error:
System.NullPointerException: Attempt to de-reference a null object.
What is wrong in my snippet?
Thanks,
Kaity
I am writing this code snippet in Developer console:
List<Lead> ledLst = [Select Id, Name From Lead where ID IN : Trigger.NewMap.keySet()];
System.debug('$$$$$$$'+ledLst);
But, I am getting the beloe Error:
System.NullPointerException: Attempt to de-reference a null object.
What is wrong in my snippet?
Thanks,
Kaity
Has SalesForce mentioned that concept in any Apex Guide or Document. Actually, I have read once the Apex Guide, But I didnot see that limitation.
-Kaity
Shaijan Thomas
Want to know, Can we call trigger from Developer Console?
Thanks,
Kaity
shaijan