Crash in onHandleInteraction()

Issue #32 resolved
Егор Смирнов repo owner created an issue

Some random nifty-gui crash with same call stack:

java.lang.NullPointerException at de.lessvoid.nifty.elements.Element.canHandleInteraction(Element.java:1670) at de.lessvoid.nifty.elements.Element.mouseEvent(Element.java:1601) at de.lessvoid.nifty.screen.MouseOverHandler.processMouseEvent(MouseOverHandler.java:113) at de.lessvoid.nifty.screen.Screen.forwardMouseEventToLayers(Screen.java:367) at de.lessvoid.nifty.screen.Screen.mouseEvent(Screen.java:337) at de.lessvoid.nifty.Nifty.forwardMouseEventToScreen(Nifty.java:307) at de.lessvoid.nifty.Nifty.access$1600(Nifty.java:76) at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processEvent(Nifty.java:1365) at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processMouseEvent(Nifty.java:1321) at de.lessvoid.nifty.slick2d.input.events.MouseEventMoved.sendToNifty(MouseEventMoved.java:41) at de.lessvoid.nifty.slick2d.input.AbstractSlickInputSystem.forwardEvents(AbstractSlickInputSystem.java:82) at de.lessvoid.nifty.Nifty.update(Nifty.java:287) at de.lessvoid.nifty.slick2d.NiftyOverlayGame.update(NiftyOverlayGame.java:220) at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:663) at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:411) at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:321) at ru.game.aurora.application.AuroraGame.main(AuroraGame.java:171)

Comments (1)

  1. Егор Смирнов reporter

    Вроде исправлено. Проблема с вызовом гуишных методов не из главного потока.

  2. Log in to comment