mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 13:36:04 +01:00
Handle null pointer exceptions when dynmap is broken.
This commit is contained in:
parent
198d70a332
commit
6aac9c0988
@ -49,6 +49,10 @@ public class DynmapHook {
|
|||||||
if (message == null) {
|
if (message == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dynmapAPI.sendBroadcastToWeb(nick, message);
|
try {
|
||||||
|
dynmapAPI.sendBroadcastToWeb(nick, message);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
plugin.logError("DynmapHook:sendMessage: " + ex.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user