Chris2011/nb-git-open-in-external-repoviewer

Context menu of maven/git-Project throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Closed this issue · 0 comments

https://netbeans.org/bugzilla/show_bug.cgi?id=237721

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1911)
    at de.markiewb.netbeans.plugin.git.openinexternalviewer.OpenAction$ContextAction.init(OpenAction.java:111)
    at de.markiewb.netbeans.plugin.git.openinexternalviewer.OpenAction$ContextAction.<init>(OpenAction.java:61)
    at de.markiewb.netbeans.plugin.git.openinexternalviewer.OpenAction$ContextAction.<init>(OpenAction.java:55)
    at de.markiewb.netbeans.plugin.git.openinexternalviewer.OpenAction.createContextAwareInstance(OpenAction.java:52)
    at org.openide.util.Utilities.actionsToPopup(Utilities.java:2832)
    at org.openide.util.Utilities.actionsToPopup(Utilities.java:2928)
    at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1058)
    at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1555)
    at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
    at org.openide.awt.MouseUtils$PopupMouseAdapter.mousePressed(MouseUtils.java:180)