Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking "Reload" on mod list screen crashes the game #23

Closed
1 task done
acrylic-style opened this issue May 5, 2022 · 0 comments
Closed
1 task done

Clicking "Reload" on mod list screen crashes the game #23

acrylic-style opened this issue May 5, 2022 · 0 comments
Labels
good first issue Simple bug fix and/or recommended for new comers type: bug Something isn't working

Comments

@acrylic-style
Copy link
Member

Check-lists

  • I've checked that the issue is not yet reported in the past (including open or closed).

Describe the bug
Clicking the "Reload" button on the mod list screen crashes the game:

[15:16:36] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.ReportedException: mouseClicked event handler
	at net.minecraft.client.gui.screens.Screen.wrapScreenError(Screen.java:481) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.MouseHandler.onPress(MouseHandler.java:81) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.MouseHandler.lambda$setup$4(MouseHandler.java:155) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:90) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.MouseHandler.lambda$setup$5(MouseHandler.java:155) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10]
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:build 10]
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:161) ~[RenderSystem.class:?]
	at com.mojang.blaze3d.platform.Window.updateDisplay(Window.java:332) ~[Window.class:?]
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1030) ~[Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:650) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:206) [Main.class:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:167) [blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:41) [blueberry-1.18.2-1.4.1.0.jar:?]
	at net.blueberrymc.server.main.ServerMain.launch(ServerMain.java:100) [blueberry-1.18.2-1.4.1.0.jar:?]
	at net.blueberrymc.client.main.ClientMain.main(ClientMain.java:40) [blueberry-1.18.2-1.4.1.0.jar:?]
Caused by: java.lang.NullPointerException: player cannot be null
	at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
	at net.blueberrymc.common.event.mod.ModReloadEvent.<init>(ModReloadEvent.java:20) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.blueberrymc.client.gui.screens.ModListScreen.lambda$init$5(ModListScreen.java:90) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.gui.components.Button.onPress(Button.java:26) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.gui.components.AbstractButton.onClick(AbstractButton.java:14) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.gui.components.AbstractWidget.mouseClicked(AbstractWidget.java:108) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.gui.components.events.ContainerEventHandler.mouseClicked(ContainerEventHandler.java:25) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.MouseHandler.lambda$onPress$0(MouseHandler.java:81) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	at net.minecraft.client.gui.screens.Screen.wrapScreenError(Screen.java:476) ~[blueberry-1.18.2-1.4.1.0.jar:?]
	... 20 more

To Reproduce
Steps to reproduce the behavior:

  1. Click "Reload" on the Blueberry mod
  2. Observe the crash

Expected behavior
Don't crash

Screenshots
If applicable, add screenshots to help explain your problem.

Environments:

  • OS: Windows 11
  • Version: 1.18.2-1.4.1.56

Additional context
No response

@acrylic-style acrylic-style added type: bug Something isn't working good first issue Simple bug fix and/or recommended for new comers labels May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Simple bug fix and/or recommended for new comers type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant