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

NullPointerException in the method addCraftingInformationToTooltip #488

Open
3 tasks done
Andrey2211553 opened this issue Sep 28, 2024 · 1 comment
Open
3 tasks done
Labels

Comments

@Andrey2211553
Copy link

Andrey2211553 commented Sep 28, 2024

Describe the bug

Bug Report Summary for Developers:

The crash occurs while rendering the Ammo Press GUI in Modern Warfare Cubed. Specifically, it fails when trying to display crafting information tooltips for ammo press recipes. The issue is caused by a NullPointerException in the method addCraftingInformationToTooltip of GUIContainerAmmoPress.

Details:

  • Error location:

    • com.paneedah.weaponlib.crafting.ammopress.GUIContainerAmmoPress.addCraftingInformationToTooltip(GUIContainerAmmoPress.java:168)
    • The error occurs when crafting tooltips are added to the GUI, causing a rendering failure.
  • Stacktrace Highlights:

    • Error in: GUIContainerAmmoPress.addCraftingInformationToTooltip()
    • Method called during: drawTooltips() in GUIContainerStation
    • Resulting in: NullPointerException while rendering the ammo press screen.

Affected Mods/Components:

  1. Modern Warfare Cubed (mwc: 0.1.8): The crash happens in its ammo crafting GUI logic.
  2. OptiFine: It's active, which might alter rendering behavior but isn't necessarily the root cause.
  3. CoreMods: Several mods affecting rendering and GUI handling are present, but weaponlib from Modern Warfare Cubed is the direct source of the error.

Possible Causes:

  • Null Data in Tooltips: The crash seems related to the crafting tooltip data being null or improperly initialized in the addCraftingInformationToTooltip method.
  • Mod Conflicts: Potential conflicts with other mods (e.g., MalisisCore, Techguns, or OptiFine) might be affecting rendering or GUI handling.
  • OptiFine Interference: While not directly mentioned in the error, OptiFine may interfere with GUI rendering and should be tested with and without it enabled.

Steps to Reproduce:

  1. Open the Ammo Press GUI in Modern Warfare Cubed.
  2. Attempt to view or interact with crafting tooltips for any ammo press recipe.
  3. The crash occurs when the tooltip should render.

Reproducibility

  • I reproduced this issue with as few other mods as possible installed.
  • I am unable to reproduce this issue consistently.

Screenshots and/or videos

No response

Logs

https://mclo.gs/4kz7GFl

Debug Logs

No response

Crash Reports

No response

MWC Version

0.1.8

Forge Version

1.12.2

Red Core Version

0.5.1

MixinBooter Version

9.4

Java Version

1.8

Java Virtual Machine

Hotspot

Operating System

Windows 10

GPU Vendor

NVIDIA

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Paneedah
Copy link
Collaborator

Did you ask ChatGPT to write this report for you? 🤔 This doesn't sound very human.

Regardless, I'm sure @Desoroxxx will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants