JetBrains-Research / RefactorInsight

An IntelliJ IDEA plugin that detects refactorings in Git commits
https://plugins.jetbrains.com/plugin/14704-refactorinsight
MIT License
99 stars 9 forks source link

NPE: Cannot invoke "java.util.List.stream()" because "this.lines" is null #123

Closed onewhl closed 1 year ago

onewhl commented 1 year ago

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because "this.lines" is null at org.jetbrains.research.refactorinsight.diff.MoreSidedDiffRequestGenerator.containsElement([MoreSidedDiffRequestGenerator.java:102](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.diff.MoreSidedDiffRequestGenerator:101)) at org.jetbrains.research.refactorinsight.data.RefactoringInfo.containsElement([RefactoringInfo.java:295](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.data.RefactoringInfo:294)) at org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider.collectSlowLineMarkers([DiffHintLineMarkerProvider.java:79](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider:78)) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders([LineMarkersPass.java:223](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.LineMarkersPass:222)) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3([LineMarkersPass.java:104](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.LineMarkersPass:103)) at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot([Divider.java:95](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.Divider:94)) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation([LineMarkersPass.java:99](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.LineMarkersPass:98)) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation([TextEditorHighlightingPass.java:57](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeHighlighting.TextEditorHighlightingPass:56)) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1([PassExecutorService.java:382](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass:381)) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction([ApplicationImpl.java:1102](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ApplicationImpl:1101)) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2([PassExecutorService.java:374](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass:373)) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13([CoreProgressManager.java:604](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:603)) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun([CoreProgressManager.java:679](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:678)) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress([CoreProgressManager.java:635](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:634)) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress([CoreProgressManager.java:603](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:602)) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress([ProgressManagerImpl.java:60](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.ProgressManagerImpl:59)) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun([PassExecutorService.java:373](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass:372)) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0([PassExecutorService.java:349](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass:348)) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader([ReadMostlyRWLock.java:229](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ReadMostlyRWLock:228)) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader([ApplicationImpl.java:187](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ApplicationImpl:186)) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run([PassExecutorService.java:347](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass:346)) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec([JobLauncherImpl.java:181](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1:180)) at java.base,java.util.concurrent.ForkJoinTask.doExec([ForkJoinTask.java:373](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.concurrent.ForkJoinTask:372)) at java.base,java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec([ForkJoinPool.java:1182](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.concurrent.ForkJoinPool$WorkQueue:1181)) at java.base,java.util.concurrent.ForkJoinPool.scan([ForkJoinPool.java:1655](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.concurrent.ForkJoinPool:1654)) at java.base,java.util.concurrent.ForkJoinPool.runWorker([ForkJoinPool.java:1622](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.concurrent.ForkJoinPool:1621)) at java.base,java.util.concurrent.ForkJoinWorkerThread.run([ForkJoinWorkerThread.java:165](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.concurrent.ForkJoinWorkerThread:164))