kirbodevv / S.A.U.W.-

Game S.A.U.W.
1 stars 0 forks source link

Bug report #39

Closed kirbodevv closed 2 years ago

kirbodevv commented 2 years ago

Describe the bug

Game crashes, when you click an empty slot in the creative menu.

Platform

Log

java.lang.NullPointerException: Attempt to read from field 'int com.kgc.sauw.core.Container.id' on a null object reference
    at com.kgc.sauw.game.gui.interfaces.CreativeInterface$1.onClick(CreativeInterface.java:65)
    at com.kgc.sauw.core.gui.elements.Slot.onClick(Slot.java:112)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:63)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InventoryFragment.tick(InventoryFragment.java:51)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.elements.Layout.tick(Layout.java:71)
    at com.kgc.sauw.core.gui.InterfaceElement.update(InterfaceElement.java:75)
    at com.kgc.sauw.core.gui.Interface.update(Interface.java:136)
    at com.kgc.sauw.core.gui.Interfaces.updateInterfaces(Interfaces.java:40)
    at com.kgc.sauw.game.Game.render(Game.java:175)
    at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:471)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1553)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1253)