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.
When "Source Packages" or "Web Services" node is selected in Explorer and Profile Other submenu should be displayed from IDE Profile menu, following exception is thrown: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at org.netbeans.modules.profiler.utils.ProjectUtilities.convertPackage2SuiteName (ProjectUtilities.java:650) at org.netbeans.modules.profiler.utils.ProjectUtilities.getTestName (ProjectUtilities.java:634) at org.netbeans.modules.profiler.utils.ProjectUtilities.findUnitTestInTestRoot (ProjectUtilities.java:622) at org.netbeans.modules.profiler.utils.ProjectUtilities.findTestForFile (ProjectUtilities.java:293) at org.netbeans.modules.profiler.actions.AntActions$3.enable (AntActions.java:171) at org.netbeans.modules.profiler.actions.FileSensitiveAction.refresh (FileSensitiveAction.java:40) at org.netbeans.modules.profiler.actions.ProjectSensitiveAction.isEnabled (ProjectSensitiveAction.java:101) at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:781) at org.openide.awt.Actions$MenuItem.synchMenuPresenters (Actions.java:1117) at org.openide.awt.DynaMenuModel.checkSubmenu(DynaMenuModel.java:152) at org.openide.awt.MenuBar$LazyMenu.stateChanged(MenuBar.java:491) at javax.swing.DefaultButtonModel.fireStateChanged (DefaultButtonModel.java:362) at javax.swing.DefaultButtonModel.setSelected (DefaultButtonModel.java:228) at javax.swing.JMenu.setSelected(JMenu.java:280) at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1251) at javax.swing.MenuSelectionManager.setSelectedPath (MenuSelectionManager.java:89) at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered (BasicMenuUI.java:504) at javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseEntered (BasicMenuUI.java:359) at com.sun.java.swing.plaf.windows.WindowsMenuUI$WindowsMouseInputHandler.mouseEnte red(WindowsMenuUI.java:163) at java.awt.Component.processMouseEvent(Component.java:5497) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:4212) at java.awt.LightweightDispatcher.trackMouseEnterExit (Container.java:4017) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3874) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Fixed for 5.1.
In fact fixed in trunk -> 6.0.
*** Issue 85404 has been marked as a duplicate of this issue. ***
Fix merged into release55 branch.
*** Issue 86517 has been marked as a duplicate of this issue. ***
Verified.