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 193269 - [70cat] ArrayIndexOutOfBoundsException: 0
Summary: [70cat] ArrayIndexOutOfBoundsException: 0
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-11 11:18 UTC by mortennobel
Modified: 2010-12-15 16:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 174913


Attachments
stacktrace (2.00 KB, text/plain)
2010-12-11 11:18 UTC, mortennobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mortennobel 2010-12-11 11:18:07 UTC
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)
Comment 1 mortennobel 2010-12-11 11:18:11 UTC
Created attachment 103963 [details]
stacktrace
Comment 2 Thomas Preisler 2010-12-13 20:25:46 UTC
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.
Comment 3 Thomas Preisler 2010-12-13 21:59:57 UTC
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.
Comment 4 Thomas Preisler 2010-12-13 22:02:19 UTC
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
Comment 5 Quality Engineering 2010-12-15 06:20:40 UTC
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
Comment 6 mortennobel 2010-12-15 08:39:58 UTC
I found a similar bug that I think is related:
http://netbeans.org/bugzilla/show_bug.cgi?id=193424
Comment 7 Thomas Preisler 2010-12-15 16:59:02 UTC
I doubt they are related. Will close this as fixed and added a comment to the other bug.