From 2762a9d1fd3b5bcd65c862a36a719271a32fc80b Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 1 Feb 2013 07:57:00 -0500 Subject: [PATCH] Fix NPE on startup relating to old party files without an xp share mode set. --- src/main/java/com/gmail/nossr50/party/ShareHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/party/ShareHandler.java b/src/main/java/com/gmail/nossr50/party/ShareHandler.java index ff97f47d2..8e4234cfa 100644 --- a/src/main/java/com/gmail/nossr50/party/ShareHandler.java +++ b/src/main/java/com/gmail/nossr50/party/ShareHandler.java @@ -20,6 +20,9 @@ public final class ShareHandler { catch (IllegalArgumentException exception) { return NONE; } + catch (NullPointerException exception) { + return NONE; + } } };