Tries to fix a stack trace when Dynmap fails to disable itself

This commit is contained in:
2023-06-27 13:47:35 +02:00
parent 6b6e9d007e
commit 3fcae6ca45
2 changed files with 9 additions and 3 deletions

View File

@@ -27,8 +27,9 @@ public final class DynmapManager {
* Initializes the dynmap manager
*
* @param dynmapAPI <p>A reference</p>
* @throws NullPointerException <p>If dynmap has an invalid state</p>
*/
public static void initialize(DynmapAPI dynmapAPI) {
public static void initialize(DynmapAPI dynmapAPI) throws NullPointerException {
if (dynmapAPI == null || dynmapAPI.getMarkerAPI() == null) {
markerSet = null;
portalIcon = null;