undyingknightmare wrote:Found an error; not present in vanilla client.
- Code: Select all
Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "notify" because "conf" is null
at haven.MiniMap$DisplayIcon.<init>(MiniMap.java:261)
at haven.MiniMap.getCustomMapIcon(MiniMap.java:650)
at haven.MiniMap.findicons(MiniMap.java:610)
at haven.MiniMap.tick(MiniMap.java:228)
at haven.Widget.tick(Widget.java:757)
at haven.Widget.tick(Widget.java:757)
at haven.GameUI.tick(GameUI.java:1244)
at haven.Widget.tick(Widget.java:757)
at haven.UI.tick(UI.java:217)
at haven.GLPanel$Loop.run(GLPanel.java:384)
at haven.JOGLPanel.run(JOGLPanel.java:252)
at java.base/java.lang.Thread.run(Thread.java:833)
Only occurs when gobs enter UI range (sometimes). It wasn't occuring for a while, but it is now persisting. I've tried building it locally from source and it persists. Checking the included source, there is no null check for GobIcon.Setting passed to the class. Presumably there shouldn't be a case where a gobicon would have a null setting field.
Windows 11 AMD 64
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)
Similiar error when playing with minimap icons... ive been trying to add some icons to display on minimap... now i cant play at all...
Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "notify" because "conf" is null
at haven.MiniMap$DisplayIcon.<init>(MiniMap.java:261)
at haven.MiniMap.getCustomMapIcon(MiniMap.java:650)
at haven.MiniMap.findicons(MiniMap.java:610)
at haven.MiniMap.tick(MiniMap.java:228)
at haven.Widget.tick(Widget.java:757)
at haven.Widget.tick(Widget.java:757)
at haven.GameUI.tick(GameUI.java:1244)
at haven.Widget.tick(Widget.java:757)
at haven.UI.tick(UI.java:217)
at haven.GLPanel$Loop.run(GLPanel.java:384)
at haven.JOGLPanel.run(JOGLPanel.java:252)
at java.base/java.lang.Thread.run(Unknown Source)
Minimap Icons button from login menu -> options also crashes:
Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "chrid" because "gameUI" is null
at haven.purus.map.MapOptionsWindow.<init>(MapOptionsWindow.java:15)
at haven.OptWnd.lambda$new$3(OptWnd.java:803)
at haven.Button.click(Button.java:163)
at haven.Button.mouseup(Button.java:220)
at haven.UI.mouseup(UI.java:535)
at haven.UIPanel$Dispatcher.dispatch(UIPanel.java:77)
at haven.GLPanel$Loop.run(GLPanel.java:365)
at haven.JOGLPanel.run(JOGLPanel.java:252)
at java.base/java.lang.Thread.run(Unknown Source)