Skip to content

Commit

Permalink
Fixed null pointer exception on java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Aug 12, 2022
1 parent f8887ec commit 44055d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/despical/kotl/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public class Main extends JavaPlugin {

@Override
public void onEnable() {
configPreferences = new ConfigPreferences(this);

if ((forceDisable = !validateIfPluginShouldStart())) {
getServer().getPluginManager().disablePlugin(this);
return;
Expand All @@ -90,8 +92,6 @@ public void onEnable() {
exceptionLogHandler.addBlacklistedClass("me.despical.kotl.user.data.MysqlManager", "me.despical.commons.database.MysqlDatabase");
exceptionLogHandler.setRecordMessage("[KOTL] We have found a bug in the code. Contact us at our official Discord server (link: https://discord.gg/rVkaGmyszE) with the following error given above!");

configPreferences = new ConfigPreferences(this);

long start = System.currentTimeMillis();

setupFiles();
Expand Down

0 comments on commit 44055d3

Please sign in to comment.