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.
Build: NetBeans IDE Dev (Build 201012110001) VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261 OS: Mac OS X User Comments: mortennobel: Run a program (C++ project on OS/X) Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.cnd.makeproject.api.ProjectActionEvent.getExecutable(ProjectActionEvent.java:147) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$HandleEvents.checkExecutable(ProjectActionSupport.java:603) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$HandleEvents.go(ProjectActionSupport.java:457) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$HandleEvents.access$000(ProjectActionSupport.java:196) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$HandleEvents$5.run(ProjectActionSupport.java:576) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
Created attachment 103963 [details] stacktrace
I can reproduce it: - create new Welcome project - run it and it will throw the exception. Only with newly created project though. If you close and reopen the IDE, the project runs fine.
Seems like the default value () is getting overridden. Change the constructor to: runDir = ""; // NOI18N - runCommand = ""; // NOI18N + runCommand = DEFAULT_RUN_COMMAND; // NOI18N buildFirst = true; It seems to work. Will have Igor review the code.
changeset: 184708:91384059fc2d tag: tip user: Thomas Preisler <thp@netbeans.org> date: Mon Dec 13 14:01:40 2010 -0800 summary: #193269 [70cat] ArrayIndexOutOfBoundsException: 0
Integrated into 'main-golden', will be available in build *201012150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/91384059fc2d User: Thomas Preisler <thp@netbeans.org> Log: #193269 [70cat] ArrayIndexOutOfBoundsException: 0
I found a similar bug that I think is related: http://netbeans.org/bugzilla/show_bug.cgi?id=193424
I doubt they are related. Will close this as fixed and added a comment to the other bug.