[
https://issues.apache.org/jira/browse/SPARK-55747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-55747.
---------------------------------
Fix Version/s: 4.2.0
4.1.2
Resolution: Fixed
Issue resolved by pull request 54546
[https://github.com/apache/spark/pull/54546]
> NPE exception on null array when indexing in Codegen
> -----------------------------------------------------
>
> Key: SPARK-55747
> URL: https://issues.apache.org/jira/browse/SPARK-55747
> Project: Spark
> Issue Type: Task
> Components: Spark Core
> Affects Versions: 4.1.1
> Reporter: Stevo Mitric
> Assignee: Stevo Mitric
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0, 4.1.2
>
>
> GetArrayItem.nullable was incorrectly computed as false when the array type
> has containsNull=false (e.g., from StringSplit) but the array itself can be
> null.
> This caused codegen to skip null checks, leading to NPE when calling
> array.numElements() on a null array during bounds checking.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]