Skip to content

./gradlew runClient: java.lang.NullPointerException at net.minecraftforge.fml.common.network.NetworkRegistry.newChannel(NetworkRegistry.java:207) #2

Description

@les-citrons
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Forge Mod Loader (FML)
Caused by: java.lang.NullPointerException
		at net.minecraftforge.fml.common.network.NetworkRegistry.newChannel(NetworkRegistry.java:207)
		at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.registerChannel(FMLNetworkHandler.java:185)
		at net.minecraftforge.fml.common.FMLContainer.modConstruction(FMLContainer.java:92)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
		at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
		at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
		at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
		at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
		at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
		at com.google.common.eventbus.EventBus.post(EventBus.java:217)
		at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
		at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
		at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
		at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
		at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
		at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
		at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
		at com.google.common.eventbus.EventBus.post(EventBus.java:217)
		at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
		at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)
		at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
		at net.minecraft.client.Minecraft.init(Minecraft.java:467)
		at net.minecraft.client.Minecraft.run(Minecraft.java:378)
		at net.minecraft.client.main.Main.main(Main.java:123)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
		at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at net.minecraftforge.legacydev.Main.start(Main.java:86)
		at net.minecraftforge.legacydev.MainClient.main(MainClient.java:29)

I got this error with the forge-provided MDK as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions