Skip to content

Fix ExprTagsOf NPE#8512

Merged
APickledWalrus merged 4 commits intoSkriptLang:dev/patchfrom
erenkarakal:patch/fix-tags-of
Mar 27, 2026
Merged

Fix ExprTagsOf NPE#8512
APickledWalrus merged 4 commits intoSkriptLang:dev/patchfrom
erenkarakal:patch/fix-tags-of

Conversation

@erenkarakal
Copy link
Copy Markdown
Member

@erenkarakal erenkarakal commented Mar 25, 2026

Problem

ExprTagsOf returns null in get(), which causes an NPE in PropertyExpression getAll()

Solution

Force non-null rule on PropertyExpression and return an empty array in ExprTagsOf

Testing Completed

Manual testing

Supporting Information


Completes: #8494
Related: none
AI assistance: none

@erenkarakal erenkarakal requested review from a team and sovdeeth as code owners March 25, 2026 12:26
@erenkarakal erenkarakal requested review from TheMug06 and removed request for a team March 25, 2026 12:26
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Mar 25, 2026
Copy link
Copy Markdown
Member

@UnderscoreTud UnderscoreTud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proper sanitization should still be applied in PropertyExpression#getAll

@github-project-automation github-project-automation bot moved this to Awaiting Merge in 2.15 Releases Mar 25, 2026
@skriptlang-automation skriptlang-automation bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Mar 25, 2026
@erenkarakal erenkarakal requested a review from a team as a code owner March 25, 2026 19:34
@APickledWalrus APickledWalrus merged commit f208227 into SkriptLang:dev/patch Mar 27, 2026
9 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.15 Releases Mar 27, 2026
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

Status: Done - Awaiting Release

Development

Successfully merging this pull request may close these issues.

NullPointerException in PropertyExpression.getAll() when tags of event-block is evaluated on entity right-click

4 participants