Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save masanobuimai/edf9fd4b112b36dacd00af63708e8c21 to your computer and use it in GitHub Desktop.
Save masanobuimai/edf9fd4b112b36dacd00af63708e8c21 to your computer and use it in GitHub Desktop.
RedPen pluginでIndexOutOfBoundsException
Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at cc.redpen.model.Section.getParagraph(Section.java:224)
at cc.redpen.validator.section.DuplicatedSectionValidator.validate(DuplicatedSectionValidator.java:85)
at cc.redpen.RedPen.lambda$runSectionValidators$31(RedPen.java:235)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at cc.redpen.RedPen.runSectionValidators(RedPen.java:235)
at cc.redpen.RedPen.validate(RedPen.java:143)
at cc.redpen.RedPen.validate(RedPen.java:158)
at cc.redpen.intellij.RedPenInspection.checkFile(RedPenInspection.kt:41)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:156)
at com.intellij.psi.PsiElementVisitor.visitPlainTextFile(PsiElementVisitor.java:42)
at com.intellij.psi.impl.source.PsiPlainTextFileImpl.accept(PsiPlainTextFileImpl.java:36)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:128)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178)
at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:100)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:112)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:88)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment