krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
437 stars 57 forks source link

Null Pointer Exception #124

Closed steinitz closed 5 years ago

steinitz commented 6 years ago

Hello,

Thank you for your work on this your very useful plugin.

I have a couple of grep console tabs that return even after I close them. I forget they are there, but they may have something to do with the Null Pointer Exception that appears sometime around WebStorm launch, or maybe debug configuration launch.

In any case, for what it's worth, here are the first few lines of the exception trace:

java.lang.NullPointerException at krasa.grepconsole.grep.OpenGrepConsoleAction.createGrepConsole(OpenGrepConsoleAction.java:97) at krasa.grepconsole.grep.PinnedGrepsReopener$1.initConsole(PinnedGrepsReopener.java:73) at krasa.grepconsole.grep.PinnedGrepsReopener$1.lambda$run$1(PinnedGrepsReopener.java:57) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:447) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:431) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

I hope that's useful. Let me know if I can do anything else.

All the best

krasa commented 6 years ago

for what kind of run configuration does it happen?

steinitz commented 5 years ago

Thanks for your reply, Vojtěch

It's a React-Native run configuration, usually running in 'debug' mode (i.e. after clicking the Debug button). It's intermittent so probably tricky to debug.

Cheers

krasa commented 5 years ago

It should not do those exceptions anymore, but it may also not reopen pins in those cases :). I will probably have to try that React-Native myself.

steinitz commented 5 years ago

Thanks for following up. Let me know if I can do anything to help.