geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [1/8] incubator-geode git commit: PutReplyMessage toData now handles a null oldValue
Date Tue, 29 Sep 2015 21:35:18 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-324 7d5db1aa6 -> 8f96dbc07


PutReplyMessage toData now handles a null oldValue


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6b737865
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6b737865
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6b737865

Branch: refs/heads/feature/GEODE-324
Commit: 6b737865f43b3eef750316a813a22f39a3d4c7a9
Parents: 7d5db1a
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Tue Sep 29 10:23:11 2015 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Tue Sep 29 10:23:11 2015 -0700

----------------------------------------------------------------------
 .../java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6b737865/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java
index 20e3725..2b28a4c 100755
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemotePutMessage.java
@@ -1006,7 +1006,7 @@ public final class RemotePutMessage extends RemoteOperationMessageWithDirectRepl
       if (this.versionTag instanceof DiskVersionTag) flags |= FLAG_PERSISTENT;
       out.writeByte(flags);
       out.writeByte(this.op.ordinal);
-      if (this.oldValueIsSerialized) {
+      if (this.oldValueIsSerialized && this.oldValue != null) {
         byte[] oldValueBytes;
         if (this.oldValue instanceof byte[]) {
           oldValueBytes = (byte[]) this.oldValue;


Mime
View raw message