You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iomicifikko opened this issue
May 10, 2024
· 0 comments
· Fixed by #6606
Labels
grelThe default expression language, GREL, could be improved in many ways!Type: BugIssues related to software defects or unexpected behavior, which require resolution.
forEachIndex(["a","b",null], i, x, x) should return the original array rather than throwing an error as it currently does.
>>> OK
.
.
. >>> KO
Expected Behavior
In my opinion the code shoud always output the original array
Versions
Operating System: Windows 11
OpenRefine: 3.7.9 with builtin java
The text was updated successfully, but these errors were encountered:
iomicifikko
added
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
labels
May 10, 2024
tfmorris
added
grel
The default expression language, GREL, could be improved in many ways!
and removed
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
labels
May 10, 2024
tfmorris
changed the title
Wrong behavior of forEachIndex and arrays with null values
forEachIndex with array containing null values throw NullPointerException
May 10, 2024
tfmorris
added a commit
to tfmorris/OpenRefine
that referenced
this issue
May 15, 2024
…#6598
- forEachIndex([], k, v, v) should return original array no matter
what the contents of the array.
- fix tests to not rely on join() since its null handling is broken.
tfmorris
added a commit
to tfmorris/OpenRefine
that referenced
this issue
May 15, 2024
…#6598
- forEachIndex([], k, v, v) should return original array no matter
what the contents of the array.
- fix tests to not rely on join() since its null handling is broken.
* Handle empty first element correctly. Fixes#3290
* Add tests for join() of JSON array
* Lint
* Fix NullPointerException in forEachIndex with nulls. Fixes#6598
- forEachIndex([], k, v, v) should return original array no matter
what the contents of the array.
- fix tests to not rely on join() since its null handling is broken.
grelThe default expression language, GREL, could be improved in many ways!Type: BugIssues related to software defects or unexpected behavior, which require resolution.
Summary
forEachIndex(["a","b",null], i, x, x)
should return the original array rather than throwing an error as it currently does.>>> OK
.
.
.
>>> KO
Expected Behavior
In my opinion the code shoud always output the original array
Versions
The text was updated successfully, but these errors were encountered: