Skip to content

Commit

Permalink
util: fix potential NPE in InternalCallContextFactory
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
  • Loading branch information
pierre committed Mar 27, 2017
1 parent 4dc99af commit 2ff0650
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -43,7 +43,8 @@
// Internal contexts almost always expect accountRecordId and tenantRecordId to be populated // Internal contexts almost always expect accountRecordId and tenantRecordId to be populated
public class InternalCallContextFactory { public class InternalCallContextFactory {


public static final long INTERNAL_TENANT_RECORD_ID = 0L; // Long, not long, to avoid NPE with ==
public static final Long INTERNAL_TENANT_RECORD_ID = 0L;


public static final String MDC_KB_ACCOUNT_RECORD_ID = "kb.accountRecordId"; public static final String MDC_KB_ACCOUNT_RECORD_ID = "kb.accountRecordId";
public static final String MDC_KB_TENANT_RECORD_ID = "kb.tenantRecordId"; public static final String MDC_KB_TENANT_RECORD_ID = "kb.tenantRecordId";
Expand Down

1 comment on commit 2ff0650

@sbrossie
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.