The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
103 views

Why does this call to Trigger keySet() throw a null pointer exception?

I have a simple trigger like: trigger littleTrigger on Custom__c (before insert) { Set<Id> idSet = Trigger.newMap.keySet(); //Some stuff } Why could the second line throw a null ...
0
votes
1answer
38 views

System.NullPointerException: Script-thrown exception

I'm trying to create a trigger which updates the Account owner based on the detail object criteria. The account assignment should be in a round robin fashion so that accounts will be distributed ...
2
votes
1answer
33 views

Attempt to de-reference a null object

When I try to load the visualforce page it gives me the error "Attempt to de-reference a null object " I have narrowed it down to the line of code lstNotes.add(new NoteWrapper(lstNotes.size(),new ...
-3
votes
1answer
74 views

System.NullPointerException: Argument cannot be null. in Test Class

At this line I am getting an errror, while running a Test Class, Please suggest solution - public PageReference Save(){ -------code ------ Object__c obj = new Object__c(); ...
1
vote
1answer
24 views

A little help with odd syntax from Twilio gist

I've been testing Twilios's Salesforce integration and after all the hassle that they do not mention in their blog (deploy unmanaged package to sandbox first, add API key to config page that is deeply ...
1
vote
1answer
332 views

System.NullPointerException: Argument cannot be null

Im getting the error 'System.NullPointerException: Argument cannot be null' when I run my test class, in the below test method. /* * update a existing report */ static testMethod void ...
0
votes
1answer
70 views

System.NullPointerException: Attempt to de-reference a null object : tmpVar1

For some reason the variable does not get assigned. What I am trying to do is to pass a set of ids to VF page from a list button. Here's my VF code: <apex:page ...
2
votes
1answer
451 views

Attempt to de-reference a null object: Trigger

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger updatequotestatus caused an unexpected exception, ...
2
votes
1answer
102 views

How can I dynamically transverse dynamically SOQL'd SObject fields in Apex?

So, in my other post, I figured out for myself how to dynamically transverse SObject fields in Apex. But within the context of my work, there is a problem with the solution as it currently stands: ...
0
votes
1answer
102 views

Null pointer exception Attempt to de-reference a null object Trigger

I am trying to default the Account Name in a case to 'abc corp' but while executing the code, it gives the error Attempt to de-reference a null object. its happening at line 10 which ...
0
votes
1answer
233 views

System.NullPointerException: Attempt to de-reference a null object - Update Field Trigger

I'm trying to create a trigger that will update a field on an account whenever the ownership of the account changes. I've tried to remove the NullPointerException error by adding if statements, but ...
0
votes
1answer
55 views

Converting null to nil

I've got quite a challenge while working with null values and a wrapper. I query the database which sometimes might have null values, but when trying to create a new record (or actually assigning ...
1
vote
3answers
270 views

System.NullPointerException: Attempt to de-reference a null object for duraion

I am new to Apex coding. Can someone please help me to resolve the issue. I am trying to automatically display the duration when from and todate is selected. For that i have developed a code in the ...
3
votes
1answer
83 views

Null Pointer on system.debug in @future method

Can someone explain the error? I have a trigger that passes a set of Event IDs to an @future clas. Below is the class: public class eventChatterFuture{ @future public static void ...
0
votes
1answer
739 views

System.NullPointerException: Attempt to de-reference a null object

Can anyone help with this error? System.NullPointerException: Attempt to de-reference a null object Class.productdata.getMapOfContent: line 24, column 1 Here is the Apex Class. "Line 24" ...
2
votes
2answers
861 views

De-reference null object error on Trigger - error only when value is null

I have a trigger and an Account handler. I have an error on record insert. Trigger calls Accounthandler.OnAfterInsert(Trigger.new, Trigger.newMap); Here is a simplified version of the handler top ...
1
vote
3answers
940 views

Attempt to de-reference a null object with Attachment

I am trying to add a attachment to a record. Their may or may not be attachment. So that i have created a attachment in the controller if the attachment is null but i am getting null point exception. ...
0
votes
1answer
248 views

Regex NullObject in Trigger if run from Dataloader else works fine

Fellow developers, I have a call to an email validation function in my before insert in my trigger, which basically puts the email blank if its not valid (according to the regex) public static ...