Avoids a NullPointerException if dynmap is present, but isn't loaded properly

This commit is contained in:
Kristian Knarvik 2022-06-24 03:23:59 +02:00
parent cae34d395b
commit ce5f3ef52f

View File

@ -29,7 +29,7 @@ public final class DynmapManager {
* @param dynmapAPI <p>A reference</p> * @param dynmapAPI <p>A reference</p>
*/ */
public static void initialize(DynmapAPI dynmapAPI) { public static void initialize(DynmapAPI dynmapAPI) {
if (dynmapAPI == null) { if (dynmapAPI == null || dynmapAPI.getMarkerAPI() == null) {
markerSet = null; markerSet = null;
portalIcon = null; portalIcon = null;
} else { } else {