Skip to content

Commit 89d3534

Browse files
WunderoWundero
Wundero
authored and
Wundero
committed
More possible null fixes.
1 parent 4f1c5b0 commit 89d3534

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/me/rojo8399/placeholderapi/impl/PlaceholderAPIPlugin.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ public void onGamePreInitializationEvent(GamePreInitializationEvent event)
287287
mapDefault();
288288
}
289289
}
290+
if (config == null) {
291+
config = new Config();
292+
this.root.setValue(Config.type, config);
293+
}
290294
File msgFile = new File(configDir.toFile(), "messages.conf");
291295
msgloader = HoconConfigurationLoader.builder().setFile(msgFile).build();
292296
try {

0 commit comments

Comments
 (0)