Dynmap-Forge/Fabric

Dynmap-Forge/Fabric

888k Downloads

NullPointerException: Cannot invoke "java.util.concurrent.ConcurrentHashMap.put(java.lang.Object, java.lang.Object)" because "this.allowedicons" is null

Nishh opened this issue ยท 4 comments

commented

template is bold
sample data is italicized

Issue Description: Dynmap throws an error while server is starting, and disables itself.

[X] I have looked at all other issues and this is not a duplicate
[ ] I have been able to replicate this

commented

just tested, if you remove all of the allowedicons entries it works, don't see that feature documented on the api page: https://gist.github.com/JOO200/eb99b294ebd16a353750f83d8dcdce23
maybe it is not supported?

commented

Sorry, I sent the wrong method, this was what I used:
DynUtil.marker.createMarkerSet(markerName.toLowerCase(), markerName, Sets.newHashSet(getMarkerIcon()), true).setDefaultMarkerIcon(getMarkerIcon());

Replacing it with:
DynUtil.marker.createMarkerSet(markerName.toLowerCase(), markerName, null, true).setDefaultMarkerIcon(getMarkerIcon());

and removing all allowedicons entries fixed it. Thanks.

commented

that is not a bug, each marker needs an icon, and from what I can see, that hasn't been defined in that method (maybe the set has no defaulticon?)

commented

Dynmap disables itself before my plugin loads.
This is my markers.yml: https://pastebin.com/9mxxCW8B
All markers have valid deficon and allowedicons.
I'm only using builtin icons (from https://github.com/webbukkit/dynmap/wiki)
Removing markers.yml fixes this, but after my plugin created the same markers and restarting > Dynmap disables itself again