Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullPointerException: Attempt to de-reference a null object - Error - Post v1.14 Upgrade #95

Closed
eggletm opened this issue Dec 4, 2014 · 8 comments
Labels

Comments

@eggletm
Copy link

eggletm commented Dec 4, 2014

Hi
We were suffering with the "DLRs falling out of Sync" issue and upgraded yesterday to v1.14 to see if that would resolve the issue, however, since upgrading we have been receiving the following error:
System.NullPointerException: Attempt to de-reference a null object

I have switched on debugging and here is the relevant section.

Any help, pointers or tips gratefully accepted.
Thanks

Debug Log Extract
12:02:00.226 (226149094)|ENTERING_MANAGED_PKG|dlrs
12:02:00.258 (258143043)|SOQL_EXECUTE_BEGIN|[76]|Aggregations:0|select Name,dlrs__Active__c,dlrs__AggregateOperation__c,dlrs__AggregateResultField__c,dlrs__CalculationMode__c,dlrs__ChildObject__c,dlrs__FieldToAggregate__c,dlrs__ParentObject__c,dlrs__RelationshipCriteria__c,dlrs__RelationshipCriteriaFields__c,dlrs__RelationshipField__c,dlrs__CalculateJobId__c,CurrencyIsoCode from dlrs__LookupRollupSummary__c where CalculationMode__c in :calculationModeNames and ChildObject__c in :childObjectNames and Active__c = true order by ParentObject__c, RelationshipField__c
12:02:00.266 (266120257)|SOQL_EXECUTE_END|[76]|Rows:6
12:02:00.406 (406530765)|SOQL_EXECUTE_BEGIN|[145]|Aggregations:0|SELECT pse__Project__c, Sum(RRV__c) lre0, Sum(RRV__c) lre1, Max(pse__Project__r.CurrencyIsoCode) mastercc FROM pse__Resource_Request__c WHERE pse__Project__c in :masterIds GROUP BY pse__Project__c
12:02:00.416 (416704017)|SOQL_EXECUTE_END|[145]|Rows:1
12:02:00.418 (418115482)|SOQL_EXECUTE_BEGIN|[60]|Aggregations:0|select IsoCode, ConversionRate from CurrencyType
12:02:00.419 (419777112)|SOQL_EXECUTE_END|[60]|Rows:28
12:02:00.425 (425133289)|METHOD_EXIT|[7]|01pw0000001zm9N|dlrs.RollupService.triggerHandler()
12:02:00.425 (425336695)|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object
(dlrs)
Trigger.dlrs_pse_Resource_RequestTrigger: line 7, column 1
12:02:00.425 (425363379)|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object
(dlrs)
Trigger.dlrs_pse_Resource_RequestTrigger: line 7, column 1

@afawcett
Copy link
Collaborator

afawcett commented Dec 5, 2014

Do you have any inactive currencies that may be referenced in your records?

@afawcett afawcett added the bug label Dec 5, 2014
@eggletm
Copy link
Author

eggletm commented Dec 9, 2014

Hi Andrew
Thanks for coming back to me.

We do have multiple currencies, but they are all active. On the object we
are seeing the errors we only use GBP.

Martin

On 5 December 2014 at 08:45, Andrew Fawcett [email protected]
wrote:

Do you have any inactive currencies that may be referenced in your records?


Reply to this email directly or view it on GitHub
#95 (comment)
.

@afawcett
Copy link
Collaborator

afawcett commented Dec 9, 2014

That is odd, would you be able to enable support access and steps to repo on your org for me to take a closer look? With this enable i can see the actual line of code in the tool its failing on, this will help a lot. I'll need your org Id once you've enabled it. If not we can arrange sometime a GTM perhaps so you can see what i'm doing.

@eggletm
Copy link
Author

eggletm commented Dec 9, 2014

Thanks Andrew, can we do a GTM?

Possible sometime tomorrow morning or Thursday? Or whenever suits you?

Thanks
Martin

On 9 December 2014 at 15:22, Andrew Fawcett [email protected]
wrote:

That is odd, would you be able to enable support access and steps to repo
on your org for me to take a closer look? With this enable i can see the
actual line of code in the tool its failing on, this will help a lot. I'll
need your org Id once you've enabled it. If not we can arrange sometime a
GTM perhaps so you can see what i'm doing.


Reply to this email directly or view it on GitHub
#95 (comment)
.

@afawcett
Copy link
Collaborator

Sorry for not getting back to you, i'm in the UK, can you do an early am call say 7 or 8am? Or failing that an evening call say 7 or 8pm?

@eggletm
Copy link
Author

eggletm commented Jan 26, 2015

Hi Andrew
Apologies for delay in response.
The issue appear to have gone away - we have not had any roll ups falling out of sync since mid-December.

As a belt and braces approach I did set up nightly scheduled runs of the Roll Up batch, which may have "fixed" or at least masked the issue.

With my overnight batch I am getting an error in the Apex Jobs list, see below:

26/01/2015 02:00 Batch Apex Completed First error: Invalid Id for pse__Milestone__c 27 27 27 Eggleton, Martin 26/01/2015 02:02 RollupJob

Is that related?

I am still very happy to have a call if that would be the best way forward. let me know.
Thanks once again.
Martin

@afawcett
Copy link
Collaborator

afawcett commented Feb 7, 2015

Fixed in v1.17.

@afawcett afawcett closed this as completed Feb 7, 2015
@eggletm
Copy link
Author

eggletm commented Feb 10, 2015

Thank you!

On 7 February 2015 at 23:27, Andrew Fawcett [email protected]
wrote:

Fixed in v1.17.


Reply to this email directly or view it on GitHub
#95 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants