Skip to content
Snippets Groups Projects
Unverified Commit 3457d43b authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1755 from raman-bt/5917-npe

5917: NPE in direct access to selfAccountInstance.
parents e66b733b 8ba2adfe
No related branches found
No related tags found
No related merge requests found
...@@ -731,8 +731,8 @@ public BlackboardArtifact addCalllog(CommunicationDirection direction, ...@@ -731,8 +731,8 @@ public BlackboardArtifact addCalllog(CommunicationDirection direction,
} else { } else {
// For incoming call, if no callee specified, assume self account is callee // For incoming call, if no callee specified, assume self account is callee
if (direction == CommunicationDirection.INCOMING) { if (direction == CommunicationDirection.INCOMING) {
addAttributeIfNotNull(ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_TO, this.selfAccountInstance.getAccount().getTypeSpecificID(), attributes); addAttributeIfNotNull(ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_TO, getSelfAccountInstance().getAccount().getTypeSpecificID(), attributes);
recipientAccountsList.add(this.getSelfAccountInstance()); recipientAccountsList.add(getSelfAccountInstance());
} else { // outgoing call without any callee } else { // outgoing call without any callee
throw new IllegalArgumentException("Callee not provided for an outgoing call."); throw new IllegalArgumentException("Callee not provided for an outgoing call.");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment