geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zho...@apache.org
Subject [geode] branch develop updated: GEODE-5280: Fixes NPE when logging event (#2022)
Date Mon, 04 Jun 2018 23:00:01 GMT
This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new b488f12  GEODE-5280: Fixes NPE when logging event (#2022)
b488f12 is described below

commit b488f12bbb1087d59895484b32a4f73137fca964
Author: Biju Kunjummen <biju.kunjummen@gmail.com>
AuthorDate: Mon Jun 4 15:59:56 2018 -0700

    GEODE-5280: Fixes NPE when logging event (#2022)
    
    Fixes NullPointerException when logging event in a debug mode
---
 .../java/org/apache/geode/internal/cache/BucketRegionQueue.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketRegionQueue.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketRegionQueue.java
index 46f74d7..314d0cc 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketRegionQueue.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketRegionQueue.java
@@ -432,8 +432,10 @@ public class BucketRegionQueue extends AbstractBucketRegionQueue {
         updateLargestQueuedKey((Long) key);
       }
       if (logger.isDebugEnabled()) {
-        logger.debug("Put successfully in the queue : {} was initialized: {}",
-            event.getRawNewValue(), this.initialized);
+        if (event != null) {
+          logger.debug("Put successfully in the queue : {} was initialized: {}",
+              event.getRawNewValue(), this.initialized);
+        }
       }
     }
     if (this.getBucketAdvisor().isPrimary()) {

-- 
To stop receiving notification emails like this one, please contact
zhouxj@apache.org.

Mime
View raw message