Skip to content

fix: null object reference inside group getPath#2800

Merged
jakex7 merged 1 commit into
software-mansion:mainfrom
kacperzolkiewski:fixGetPathFuncion
Oct 16, 2025
Merged

fix: null object reference inside group getPath#2800
jakex7 merged 1 commit into
software-mansion:mainfrom
kacperzolkiewski:fixGetPathFuncion

Conversation

@kacperzolkiewski
Copy link
Copy Markdown
Collaborator

Summary

Fixes: #2799

This PR adds a null check before adding the child’s path.
if (path != null) { mPath.addPath(path, transform); }
This ensures that only valid paths are added to the group’s path, preventing crashes when a child node return null from getPath.

Test Plan

Run example from issue: #2799

Compatibility

OS Implemented
iOS
MacOS
Android
Web

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

Copy link
Copy Markdown
Member

@jakex7 jakex7 left a comment

Choose a reason for hiding this comment

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

LGTM

@jakex7 jakex7 merged commit 9e52fa9 into software-mansion:main Oct 16, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants