Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullpointerException in TiledMapProperties #901

Closed
Lutz89 opened this issue Jun 25, 2024 · 2 comments
Closed

NullpointerException in TiledMapProperties #901

Lutz89 opened this issue Jun 25, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@Lutz89
Copy link

Lutz89 commented Jun 25, 2024

Hey @AristurtleDev 👋

There is an error in the implementation of the TryGetValue method in the TiledMapProperties class, which leads to a NullpointerException.

The assignment of the return value must be changed from
value = result ? null : tmpVal.Value;
To
value = result ? tmpVal.Value : null;

Cheers,
Lutz

@AristurtleDev
Copy link
Member

Thanks @Lutz89

@AristurtleDev
Copy link
Member

Resolved in #903

@github-project-automation github-project-automation bot moved this from In Progress to Done in 4.0.0 Unresloved Issues Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants