You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/04/07 13:40:20 UTC

[3/3] tinkerpop git commit: Reversed logic of if to place null first CTR

Reversed logic of if to place null first CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/7c99635e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/7c99635e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/7c99635e

Branch: refs/heads/tp31
Commit: 7c99635e4909b6904e89020b02a9193d5b7ea0d9
Parents: df9de56
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Apr 7 09:03:02 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Apr 7 09:03:02 2017 -0400

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7c99635e/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java
index d0d6aab..445b9e5 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java
@@ -117,7 +117,7 @@ public final class ElementHelper {
             if (!(propertyKeyValues[i] instanceof String) && !(propertyKeyValues[i] instanceof T))
                 throw Element.Exceptions.providedKeyValuesMustHaveALegalKeyOnEvenIndices();
 
-            if (propertyKeyValues[i + 1] == null) {
+            if (null == propertyKeyValues[i + 1]) {
                 throw Property.Exceptions.propertyValueCanNotBeNull();
             }
         }