mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1320] Fix NPE in VmTyped.hashCode when property is null #1016
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1320
Author: @jurajmaj
Created: 11/15/2025
Status: 🔄 Open
Base:
main← Head:npe-in-hashcode📝 Commits (2)
6ba027aFix NPE in VmTyped.hashCode when property is null7a0b32cUse stackOverflowError for circular reference handling in hashCode📊 Changes
2 files changed (+6 additions, -2 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/runtime/VmExceptionBuilder.java(+5 -1)📝
pkl-core/src/main/java/org/pkl/core/runtime/VmTyped.java(+1 -1)📄 Description
Fixes #1167
Null properties in
VmTypedpreviously caused a NPE when accessed throughhashCode().This fix adds null checks so that
containsKeyand other map operations do not crash.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.