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

NullPointerException occurs when trying to run any code #733

Open
costantino2000 opened this issue Oct 4, 2024 · 1 comment
Open

NullPointerException occurs when trying to run any code #733

costantino2000 opened this issue Oct 4, 2024 · 1 comment

Comments

@costantino2000
Copy link

Describe the bug
If I try to run any code, a null pointer exception occurs.

To Reproduce

  1. Open any question
  2. Click on run (you don't need to write any code, the error still happens)
  3. See error

Software versions

  • IDEA 2020.2.4
  • Runtime version: JDK 21.0.3
  • OS: Windows 10

Question

  • URL: leetcode.com
  • Code Type: JAVA

Error

java.lang.NullPointerException: Cannot invoke "String.toUpperCase()" because "langSlug" is null
  at com.shuzijun.leetcode.plugin.model.CodeTypeEnum.getCodeTypeEnumByLangSlug(CodeTypeEnum.java:80)
  at com.shuzijun.leetcode.plugin.actions.editor.RunCodeAction.actionPerformed(RunCodeAction.java:17)
  at com.shuzijun.leetcode.plugin.actions.editor.AbstractEditAction.actionPerformed(AbstractEditAction.java:53)
  at com.shuzijun.leetcode.plugin.actions.editor.RunCodeAction.actionPerformed(RunCodeAction.java:13)
  at com.shuzijun.leetcode.plugin.actions.AbstractAction$1.run(AbstractAction.java:52)
  at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)
  at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:528)
  at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:249)
  at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
  at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:221)
  at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:49)
  at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:220)
  at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
  at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
  at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
  at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
  at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
  at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
  at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:249)
  at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:501)
  at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:466)
  at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:92)
  at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:92)
  at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:97)
  at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:92)
  at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$19(ProgressRunner.java:464)
  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
  at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
  at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
  at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
  at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
  at java.base/java.lang.Thread.run(Thread.java:1583)

I am using the Leetcode pro plugin, since the free one would keep disappearing after installation.

@aibeatsbeats
Copy link

i have the same problem in PyCharm

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

2 participants