You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2014/11/13 06:55:34 UTC

[9/9] phoenix git commit: PHOENIX-1449 Fix potential NPE in delete

PHOENIX-1449 Fix potential NPE in delete


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/5363c989
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/5363c989
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/5363c989

Branch: refs/heads/master
Commit: 5363c989a0f5b9876d3153355664760f164776a4
Parents: f379fdf
Author: James Taylor <jt...@salesforce.com>
Authored: Wed Nov 12 21:12:36 2014 -0800
Committer: James Taylor <jt...@salesforce.com>
Committed: Wed Nov 12 21:53:05 2014 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/compile/DeleteCompiler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/5363c989/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
index 6638819..92abd77 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
@@ -166,7 +166,9 @@ public class DeleteCompiler {
                     }
                     connection.commit();
                     mutations.clear();
-                    indexMutations.clear();
+                    if (indexMutations != null) {
+                        indexMutations.clear();
+                    }
                 }
             }