jsettlers / settlers-remake

A Remake of "The Settlers III" for Windows, Linux, Mac and Android
http://www.settlers-android-clone.com
MIT License
355 stars 101 forks source link

NullPointerException at Movable.getMoveProgress #719

Closed krichter722 closed 6 years ago

krichter722 commented 6 years ago

FYI, I experienced a NPE without any noticable impact on the gameplay which still probably indicates unplanned behaviour

Main draw handler cought throwable:
java.lang.NullPointerException
    at jsettlers.logic.movable.Movable.getMoveProgress(Movable.java:831)
    at jsettlers.graphics.map.draw.MapObjectDrawer.drawMovableAt(MapObjectDrawer.java:498)
    at jsettlers.graphics.map.draw.MapObjectDrawer.draw(MapObjectDrawer.java:427)
    at jsettlers.graphics.map.MapContent.drawTile(MapContent.java:524)
    at jsettlers.graphics.map.MapContent.drawMain(MapContent.java:488)
    at jsettlers.graphics.map.MapContent.drawContent(MapContent.java:289)
    at go.graphics.region.Region.drawRegion(Region.java:103)
    at go.graphics.area.Area.drawRegionAt(Area.java:132)
    at go.graphics.area.Area.drawArea(Area.java:120)
    at go.graphics.swing.AreaContainer.draw(AreaContainer.java:165)
    at go.graphics.swing.AreaContainer$1.display(AreaContainer.java:97)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1424)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1438)
    at com.jogamp.opengl.Threading.invoke(Threading.java:223)
    at com.jogamp.opengl.awt.GLCanvas.display(GLCanvas.java:505)
    at com.jogamp.opengl.awt.GLCanvas.paint(GLCanvas.java:559)
    at com.jogamp.opengl.awt.GLCanvas.update(GLCanvas.java:866)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
    at sun.awt.X11.XRepaintArea.updateComponent(XRepaintArea.java:51)
    at sun.awt.RepaintArea.paint(RepaintArea.java:232)
    at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:584)
    at java.awt.Component.dispatchEventImpl(Component.java:4965)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:733)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

experienced with nightly ZIP v0.4.0-alpha/2017-06-19_19-24-35__c3add12

andreas-eberle commented 6 years ago

I think this was fixed in master already.