Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when accidentally hitting shift while moving inside a robot #24

Open
Howlinmoon opened this issue Jul 4, 2017 · 0 comments
Open

Comments

@Howlinmoon
Copy link

Howlinmoon commented Jul 4, 2017

Issue seen using release 2.7
When movement cheat is enabled (which it is by default) using shift as the normal "Cursor" while inside a robot generates this exception:
(This doesn't happen in solder pen mode)

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.droidquest.levels.Level.materialAt(Level.java:153)
at com.droidquest.items.Item.moveRight(Item.java:414)
at com.droidquest.items.Item.moveRight(Item.java:472)
at com.droidquest.avatars.Player.moveRight(Player.java:508)
at com.droidquest.avatars.GameCursor.moveRight(GameCursor.java:288)
at com.droidquest.avatars.Player.handleMoveRight(Player.java:321)
at com.droidquest.avatars.Player.KeyUp(Player.java:365)
at com.droidquest.RoomDisplay$2.keyReleased(RoomDisplay.java:63)
at java.awt.AWTEventMulticaster.keyReleased(AWTEventMulticaster.java:259)
at java.awt.Component.processKeyEvent(Component.java:6494)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
at java.awt.Component.processEvent(Component.java:6310)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
at java.awt.Component.dispatchEventImpl(Component.java:4760)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
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:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.droidquest.items.Sentry.PlayerInRobot(Sentry.java:364)
at com.droidquest.items.Sentry.Animate(Sentry.java:230)
at com.droidquest.RoomDisplay$5.actionPerformed(RoomDisplay.java:235)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)

philn5d pushed a commit to philn5d/DroidQuest that referenced this issue Oct 27, 2017
… using shift-move and no room in direction
FalconZip pushed a commit to FalconZip/DroidQuest that referenced this issue Jul 25, 2020
… using shift-move and no room in direction
FalconZip pushed a commit to FalconZip/DroidQuest that referenced this issue Jul 26, 2020
… using shift-move and no room in direction
FalconZip pushed a commit to FalconZip/DroidQuest that referenced this issue Jul 26, 2020
… using shift-move and no room in direction
FalconZip pushed a commit to FalconZip/DroidQuest that referenced this issue Jul 26, 2020
… using shift-move and no room in direction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant