Game crashes, when you click an empty slot in the creative menu.
Platform
[x] Android
[x] Desktop
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)
Describe the bug
Game crashes, when you click an empty slot in the creative menu.
Platform
Log