Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fix ConstantName
Browse files Browse the repository at this point in the history
  • Loading branch information
thinker0 committed Feb 16, 2020
1 parent 824b227 commit 8d6d506
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -58,7 +58,7 @@
*/
public abstract class HeronClient implements ISelectHandler {
private static final Logger LOG = Logger.getLogger(HeronClient.class.getName());
private static final Object dummy = new Object();
private static final Object DUMMY = new Object();

// When we send a request, we need to:
// record the the context for this particular RID, and prepare the response for that RID
Expand Down Expand Up @@ -195,7 +195,7 @@ public void sendRequest(Message request, Object context, Message.Builder respons
Duration timeout) {
// Pack it as a no-timeout request and send it!
final REQID rid = REQID.generate();
contextMap.put(rid, Objects.nonNull(context) ? context : dummy); // Fix NPE
contextMap.put(rid, Objects.nonNull(context) ? context : DUMMY); // Fix NPE
responseMessageMap.put(rid, responseBuilder);

// Add timeout for this request if necessary
Expand Down

0 comments on commit 8d6d506

Please sign in to comment.