java.lang.IndexOutOfBoundsException: 0 scala.collection.mutable.ResizableArray$class.apply(ResizableArray.scala:43) scala.collection.mutable.ArrayBuffer.apply(ArrayBuffer.scala:47) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findFullPath(NodeChangeDetector.scala:150) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findCommits(NodeChangeDetector.scala:23) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:66) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:64) scala.collection.parallel.mutable.ParArray$Map.leaf(ParArray.scala:658) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:54) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) . . .

GitHub | caiusb | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I get a NPE on some projects

    GitHub | 1 year ago | caiusb
    java.lang.IndexOutOfBoundsException: 0 scala.collection.mutable.ResizableArray$class.apply(ResizableArray.scala:43) scala.collection.mutable.ArrayBuffer.apply(ArrayBuffer.scala:47) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findFullPath(NodeChangeDetector.scala:150) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findCommits(NodeChangeDetector.scala:23) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:66) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:64) scala.collection.parallel.mutable.ParArray$Map.leaf(ParArray.scala:658) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:54) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) . . .

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      0 scala.collection.mutable.ResizableArray$class.apply(ResizableArray.scala:43) scala.collection.mutable.ArrayBuffer.apply(ArrayBuffer.scala:47) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findFullPath(NodeChangeDetector.scala:150) edu.oregonstate.mutation.statementHistory.NodeChangeDetector.findCommits(NodeChangeDetector.scala:23) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:66) edu.oregonstate.mutation.statementHistory.Main$$anonfun$8.apply(Main.scala:64) scala.collection.parallel.mutable.ParArray$Map.leaf(ParArray.scala:658) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:54) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:53) . . .

      at scala.collection.parallel.package$$anon$1.alongWith()
    2. Scala
      ForkJoinWorkerThread.run
      1. scala.collection.parallel.package$$anon$1.alongWith(package.scala:85)
      2. scala.collection.parallel.Task$class.mergeThrowables(Tasks.scala:86)
      3. scala.collection.parallel.mutable.ParArray$Map.mergeThrowables(ParArray.scala:650)
      4. scala.collection.parallel.Task$class.tryMerge(Tasks.scala:72)
      5. scala.collection.parallel.mutable.ParArray$Map.tryMerge(ParArray.scala:650)
      6. scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.internal(Tasks.scala:190)
      7. scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:514)
      8. scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.compute(Tasks.scala:162)
      9. scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:514)
      10. scala.concurrent.forkjoin.RecursiveAction.exec(RecursiveAction.java:160)
      11. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      12. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      13. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      14. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      14 frames