Skip to content

Conversation

@eRedekopp
Copy link

@eRedekopp eRedekopp commented Mar 21, 2024

Summary
GraphDataModel::isLayer throws an error if the argument is null, whereas mxgraph would return false. Added a null check to return false in that case, and added some jest tests for isLayer. This was noticed in #357

closes #357

Description for the changelog
Add null check to GraphDataModel::isLayer

@eRedekopp eRedekopp force-pushed the fix-graphdatamodel branch from 34e6222 to 755e2cc Compare March 21, 2024 01:07
@tbouffard tbouffard added the bug Something isn't working label Mar 21, 2024
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏿
Thanks for providing this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GraphDataModel.isLayer: cannot read properties of null (reading 'getParent')

2 participants