ualberta-smr / LibCompPlugin

An IntelliJ plugin for comparing libraries
http://smr.cs.ualberta.ca/comparelibraries
MIT License
6 stars 1 forks source link

ArrayIndexOutOfBoundException for gradle dependencies #30

Closed snadi closed 4 years ago

snadi commented 4 years ago

This wasn't happening before but today when trying libcomp in a gradle file, I got an exception in this line

selectedTerm = valuesInQuotes[0];

as follows:

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
    at smr.cs.ualberta.libcomp.action.ReplacementAction.detectDependancy(ReplacementAction.java:163)
    at smr.cs.ualberta.libcomp.action.ReplacementAction.detectAllOpenEditors(ReplacementAction.java:132)
    at smr.cs.ualberta.libcomp.action.ReplacementAction.update(ReplacementAction.java:218)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:177)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:453)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$null$1(ActionUpdater.java:93)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:133)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$2(ActionUpdater.java:94)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:435)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:296)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:275)
    at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1712)
snadi commented 4 years ago

I need to provide more specific replication instructions

relhajj commented 4 years ago

Closing issue because could not replicate this error.