This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237721 - Context menu of maven/git-Project throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Summary: Context menu of maven/git-Project throws java.lang.StringIndexOutOfBoundsExce...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: markiewb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 15:32 UTC by ewer
Modified: 2013-10-28 19:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the messages from the userdir. (220.01 KB, text/x-log)
2013-10-28 15:32 UTC, ewer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ewer 2013-10-28 15:32:24 UTC
Created attachment 141609 [details]
the messages from the userdir.

I have some maven projects open. When clicking in the Projects windows on a
project with right click, nothing happens. The Notification shows an Exception: 

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)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
	at java.awt.Component.processMouseEvent(Component.java:6502)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 3 markiewb 2013-10-28 19:24:59 UTC
Fixed in 1.3.1 of my plugin 

Please wait a few days until it is verified and available as an update from within your IDE.

OR

download and install the version 1.3.1 from http://plugins.netbeans.org/plugin/49930/