forked from LogBlock/LogBlock
Full stack trace in case of NPE at loading
This commit is contained in:
@@ -82,6 +82,8 @@ public class LogBlock extends JavaPlugin
|
|||||||
if (updater.update())
|
if (updater.update())
|
||||||
config = new Config(this);
|
config = new Config(this);
|
||||||
updater.checkTables();
|
updater.checkTables();
|
||||||
|
} catch (final NullPointerException ex) {
|
||||||
|
getLogger().log(Level.SEVERE, "[LogBlock] Error while loading: ", ex);
|
||||||
} catch (final Exception ex) {
|
} catch (final Exception ex) {
|
||||||
getLogger().severe("[LogBlock] Error while loading: " + ex.getMessage());
|
getLogger().severe("[LogBlock] Error while loading: " + ex.getMessage());
|
||||||
errorAtLoading = true;
|
errorAtLoading = true;
|
||||||
|
Reference in New Issue
Block a user