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

Using Systemcall SCREEN_IS_KEY_PRESSED causes crashes at randon #21

Open
ParkerTenBroeck opened this issue Jan 12, 2021 · 0 comments
Open
Labels
bug Something isn't working Plugin anything related to the plugin system
Milestone

Comments

@ParkerTenBroeck
Copy link
Owner

When using the SCREEN_IS_KEY_PRESSED system call this error can happen

[Error] [RunTime] [System Call] System Call: SCREEN_IS_KEY_PRESSED from plugin: Screen
java.lang.NullPointerException
        at org.parker.mips.plugin.internal.syscall.Screen.isKeyPressed(Screen.java:85)
        at org.parker.mips.plugin.internal.syscall.ScreenSystemCalls$1.handleSystemCall(ScreenSystemCalls.java:26)
        at org.parker.mips.plugin.syscall.SystemCallPluginHandler.SystemCall(SystemCallPluginHandler.java:110)
        at org.parker.mips.processor.InstructionDecode$4.runInstruction(InstructionDecode.java:62)
        at org.parker.mips.processor.InstructionDecode.runInstruction(InstructionDecode.java:598)
        at org.parker.mips.processor.Processor.singleStep(Processor.java:116)
        at org.parker.mips.processor.Processor.run(Processor.java:70)
        at java.base/java.lang.Thread.run(Thread.java:834)
@ParkerTenBroeck ParkerTenBroeck added bug Something isn't working Plugin anything related to the plugin system labels Jan 12, 2021
@ParkerTenBroeck ParkerTenBroeck modified the milestones: Finish Full Plugin Reform, 1.0 Release Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plugin anything related to the plugin system
Projects
None yet
Development

No branches or pull requests

1 participant