usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [05/16] usergrid git commit: fix NPE with push notifications and sendMessageToLocalRegion
Date Tue, 23 Oct 2018 03:17:43 GMT
fix NPE with push notifications and sendMessageToLocalRegion


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/455bdde7
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/455bdde7
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/455bdde7

Branch: refs/heads/master
Commit: 455bdde7004f1f610f6ac2395298167ee9a3e7b2
Parents: 8913e43
Author: Mike Dunker <mdunker@google.com>
Authored: Sat Feb 24 12:09:52 2018 -0800
Committer: Keyur Karnik <keyur.karnik+github@gmail.com>
Committed: Tue Aug 28 16:41:43 2018 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/queue/impl/SNSQueueManagerImpl.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/455bdde7/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java
b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java
index de1671d..83b65de 100644
--- a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java
+++ b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java
@@ -682,7 +682,7 @@ public class SNSQueueManagerImpl implements LegacyQueueManager {
 
     @Override
     public <T extends Serializable> void sendMessageToLocalRegion(final T body, Boolean
async) throws IOException {
-        boolean sendAsync = async.booleanValue();
+        boolean sendAsync = async == null || async.booleanValue();
         if (sendAsync) {
             sendMessageToLocalRegionAsync(body);
         } else {


Mime
View raw message