Cediner / ArdClient

Public Haven & Hearth Client (https://discord.gg/24Tq35uwBD)
Other
37 stars 31 forks source link

NullPointerException after character selection / world loading #79

Closed Isabur closed 1 year ago

Isabur commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

NullPointerException after character selection / world loading

To Reproduce Steps to reproduce the behavior:

**1. Start client

  1. Login
  2. Select character
  3. waiting until world loaded
  4. open debug channel
  5. read exceptions**

Expected behavior A clear and concise description of what you expected to happen.

No exceptions after world loaded

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

Desktop (please complete the following information): **- OS: Windows 11

Additional context Add any other context about the problem here.

[12:47] java.lang.NullPointerException: Cannot invoke "java.awt.Color.getRed()" because "c" is null [12:47] at haven.Utils.c2fa(Utils.java:1877) [12:47] at haven.States$ColState.(States.java:50) [12:47] at haven.GOut.chcolor(GOut.java:788) [12:47] at haven.CharWnd$GlutMeter.draw(CharWnd.java:295) [12:47] at haven.Widget.draw(Widget.java:874) [12:47] at haven.Widget.draw(Widget.java:906) [12:47] at haven.Widget.draw(Widget.java:874) [12:47] at haven.Widget.draw(Widget.java:906) [12:47] at haven.Widget.draw(Widget.java:874) [12:47] at haven.Widget.draw(Widget.java:906) [12:47] at haven.sloth.gui.MovableWidget.draw(MovableWidget.java:216) [12:47] at haven.Window.draw(Window.java:690) [12:47] at haven.Widget.draw(Widget.java:874) [12:47] at haven.Widget.draw(Widget.java:906) [12:47] at haven.GameUI.draw(GameUI.java:1366) [12:47] at haven.Widget.draw(Widget.java:874) [12:47] at haven.Widget.draw(Widget.java:906) [12:47] at haven.RootWidget.draw(RootWidget.java:90) [12:47] at haven.UI.draw(UI.java:241) [12:47] at haven.HavenPanel.rootdraw(HavenPanel.java:463) [12:47] at haven.HavenPanel.run(HavenPanel.java:771) [12:47] at java.base/java.lang.Thread.run(Thread.java:1589)