Getting Attempt to de-reference a null object for Community User in Salesforce after update version to latest #833
Replies: 1 comment 2 replies
-
Hi @Miller21mi - there have been a few people recently impacted by this, but I think it'll be resolved once I merge & release PR #831 (hopefully today or tomorrow). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I recently updated the version of an unmanaged package, and I’m encountering an issue with the logger.saveLog() method.
When triggered by a community user, logger.saveLog() throws a "System.NullPointerException: Attempt to de-reference a null object" error.
However, when triggered by a regular user, it works without any issues.
Here’s the error log I’m getting:
SYSTEM_METHOD_EXIT|[979]|LogEntryEventBuilder.__sfdc_CACHED_AUTH_SESSION_PROXY()
|STATEMENT_EXECUTE|[979]
|STATEMENT_EXECUTE|[983]
|SYSTEM_METHOD_ENTRY|[983]|LogEntryEventBuilder.__sfdc_CACHED_AUTH_SESSION_PROXY()
|HEAP_ALLOCATE|[39]|Bytes:5
|STATEMENT_EXECUTE|[38]
|STATEMENT_EXECUTE|[39]
|STATEMENT_EXECUTE|[42]
|SYSTEM_METHOD_EXIT|[983]|LogEntryEventBuilder.__sfdc_CACHED_AUTH_SESSION_PROXY()
|HEAP_ALLOCATE|[983]|Bytes:41
|METHOD_EXIT|[831]|XXXXXXXXXX|LogEntryEventBuilder.setQueriedAuthSessionDetails(LogEntryEvent__e, LoggerSettings__c)
|METHOD_EXIT|[3722]|XXXXXXXXXX|LogEntryEventBuilder.getLogEntryEvent()
|METHOD_EXIT|[3681]|xxxxxxxxxx|Logger.saveLog(String)
|SYSTEM_MODE_EXIT|false
|METHOD_EXIT|[9]|xxxxxxxxxx|Logger.saveLog()
|SYSTEM_MODE_EXIT|true
|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object
Class.LogEntryEventBuilder.setQueriedAuthSessionDetails: line 983, column 1
Class.LogEntryEventBuilder.getLogEntryEvent: line 831, column 1
Class.Logger.saveLog: line 3722, column 1
Class.Logger.saveLog: line 3681, column 1
|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object
Any insights on what might be causing this null pointer exception and how to resolve it?
Thanks in advance! 😊
Beta Was this translation helpful? Give feedback.
All reactions