Skip to content

Commit 46fe38c

Browse files
committed
Merge branch '3.7-dev'
2 parents 17959f3 + 430cc36 commit 46fe38c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
115115
* Deprecated `gremlin_python.process.__.has_key_` in favor of `gremlin_python.process.__.has_key`.
116116
* Added `gremlin.spark.outputRepartition` configuration to customize the partitioning of HDFS files from `OutputRDD`.
117117
* Allowed `mergeV()` and `mergeE()` to supply `null` in `Map` values.
118+
* Improved error message for when `emit()` is used without `repeat()`.
118119
119120
[[release-3-7-3]]
120121
=== TinkerPop 3.7.3 (October 23, 2024)

gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ public int hashCode() {
182182
int result = super.hashCode();
183183
result ^= Boolean.hashCode(this.untilFirst);
184184
result ^= Boolean.hashCode(this.emitFirst) << 1;
185+
186+
// not a normal state, but prevents NPE during strategy application allowing the better
187+
// user-friendly error message to show up at iteration
185188
if (this.repeatTraversal != null)
186189
result ^= this.repeatTraversal.hashCode();
187190
if (this.loopName != null)

0 commit comments

Comments
 (0)