Skip to content

Test/Submit the code with keyboard shortcut under edit console generated "java.lang.NullPointerException" #102

@ycchen24

Description

@ycchen24

using keyboard shortcut to operate run testcase/submit the code to leetcode under editor window. IDE generate fatal error with error message

env:
version:v6.0-beta.1
pycharm
os: mac

reproduced step:
1:set up keyboard shortcut, as cmd+' for running testcase, cmd+; for submit code
2:login to leetcode successfully
3:right-click for any program and select run test or submit code. confirm testcase run successfully and submit code completed. No problem to see successfully message on event log
4:move cursor to edit window, and using keyboard shortcut. IDE fatal error is generated

error message:

java.lang.NullPointerException
	at com.shuzijun.leetcode.plugin.actions.SubmitAction.perform(SubmitAction.java:19)
	at com.shuzijun.leetcode.plugin.actions.AbstractAsynAction$1.run(AbstractAsynAction.java:17)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Screen Shot 2019-12-13 at 21 23 05

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions