Full stack trace in case of NPE at loading

This commit is contained in:
Robin Kupper
2011-11-21 01:57:26 +01:00
parent 91056b2712
commit a8ccd72e92

View File

@@ -82,6 +82,8 @@ public class LogBlock extends JavaPlugin
if (updater.update())
config = new Config(this);
updater.checkTables();
} catch (final NullPointerException ex) {
getLogger().log(Level.SEVERE, "[LogBlock] Error while loading: ", ex);
} catch (final Exception ex) {
getLogger().severe("[LogBlock] Error while loading: " + ex.getMessage());
errorAtLoading = true;