This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch feature/GEODE-9989
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-9989 by this 
push:
     new 58b6afc  fix-1
58b6afc is described below

commit 58b6afc338665dbf23826a25d42e4796f6a20f7f
Author: zhouxh <[email protected]>
AuthorDate: Wed Jan 26 11:04:21 2022 -0800

    fix-1
---
 .../java/org/apache/geode/internal/cache/DistributedRegion.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java
 
b/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java
index 1d041a2..5c8b50a 100755
--- 
a/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java
@@ -273,8 +273,10 @@ public class DistributedRegion extends LocalRegion 
implements InternalDistribute
     }
     if (persistenceAdvisor != null) {
       persistentId = persistenceAdvisor.generatePersistentID();
-      logger.info("GGG:Created newId " + (persistentId == null ? null : 
persistentId.getTimeStamp())
-          + " for region " + getFullPath());
+      if (persistentId != null) {
+        logger.info(
+            "GGG:Created newId " + persistentId.getTimeStamp() + " for region 
" + getFullPath());
+      }
     } else {
       persistentId = null;
     }

Reply via email to