Commit 3b64e194dc702f70fec642deec08a3d0c524b024

Authored by Mumfrey
1 parent 6ea1d058

throw a more descriptive message than an NPE if something breaks at startup

java/client/com/mumfrey/liteloader/client/CallbackProxyClient.java
... ... @@ -127,6 +127,12 @@ public class CallbackProxyClient
127 127 public static void onStartupComplete(int ref, Minecraft minecraft)
128 128 {
129 129 CallbackProxyClient.events = ClientEvents.getInstance();
  130 +
  131 + if (CallbackProxyClient.events == null)
  132 + {
  133 + throw new RuntimeException("LiteLoader failed to start up properly. The game is in an unstable state and must shut down now. Check the developer log for startup errors");
  134 + }
  135 +
130 136 CallbackProxyClient.events.onStartupComplete();
131 137 }
132 138  
... ...