diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-08-27 21:50:55 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-08-27 21:50:55 +0800 |
| commit | a3a6887c5139ff9463fe6ab32b480dbeca8623e3 (patch) | |
| tree | cbae10cdb940f93b4feddd3cc5a6c3fcf867ef27 /fabric/src/main/java/me | |
| parent | 113fe8f692f4f9bb113d28f6a1b3375bd8f0eec8 (diff) | |
| download | RoughlyEnoughItems-a3a6887c5139ff9463fe6ab32b480dbeca8623e3.tar.gz RoughlyEnoughItems-a3a6887c5139ff9463fe6ab32b480dbeca8623e3.tar.bz2 RoughlyEnoughItems-a3a6887c5139ff9463fe6ab32b480dbeca8623e3.zip | |
Fix NPE in PluginDetectorImpl.loadPlugin
Diffstat (limited to 'fabric/src/main/java/me')
| -rw-r--r-- | fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java b/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java index 410b31e21..fae947dae 100644 --- a/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java +++ b/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java @@ -80,7 +80,7 @@ public class PluginDetectorImpl { } catch (Throwable t) { Throwable throwable = t; while (throwable != null) { - if (throwable.getMessage().contains("environment type SERVER") && !RoughlyEnoughItemsInitializer.isClient()) continue out; + if (throwable.getMessage() != null && throwable.getMessage().contains("environment type SERVER") && !RoughlyEnoughItemsInitializer.isClient()) continue out; throwable = throwable.getCause(); } String error = "Could not create REI Plugin [" + getSimpleName(pluginClass) + "] due to errors, provided by '" + container.getProvider().getMetadata().getId() + "'!"; |
