craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

NullpointerException in TiledMapProperties #901

Closed Lutz89 closed 5 months ago

Lutz89 commented 5 months ago

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 commented 5 months ago

Thanks @Lutz89

AristurtleDev commented 5 months ago

Resolved in #903