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 54149 - Customizer - custom empty target selection throws exception
Summary: Customizer - custom empty target selection throws exception
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 57063 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-28 11:03 UTC by zikmund
Modified: 2006-03-24 12:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (1.78 KB, text/plain)
2005-01-28 11:03 UTC, zikmund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-01-28 11:03:14 UTC
Build 200501271900

1) Have a Java/Web Freeform Project
2) Go to project's properties | Build and Run
3) Press 'Add' button
4) Click newly created line's "ant target"
5) Leave it empty
6) Click any other line/button in customizer
7) Click again newly created line's "ant target"
8) EXCEPTION -- see attachment
Comment 1 zikmund 2005-01-28 11:03:47 UTC
Created attachment 20037 [details]
NPE
Comment 2 zikmund 2005-01-28 13:02:02 UTC
ant/freeform/src/org/netbeans/modules/ant/freeform/ui/TargetMappingPanel
@ line 743

is:
                if (ct.targets.size()) {
should be:
                if ((ct.targets != null) && (ct.targets.size() > 1)) {
Comment 3 zikmund 2005-03-29 11:37:52 UTC
*** Issue 57063 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2005-04-03 19:22:26 UTC
Too late for 4.1 unless this is P2.
Comment 5 Jan Lahoda 2005-04-22 08:18:09 UTC
Implemented the suggestion:
Checking in
freeform/src/org/netbeans/modules/ant/freeform/ui/TargetMappingPanel.java;
/cvs/ant/freeform/src/org/netbeans/modules/ant/freeform/ui/TargetMappingPanel.java,v
 <--  TargetMappingPanel.java
new revision: 1.34; previous revision: 1.33
done
Comment 6 zikmund 2005-05-25 17:11:22 UTC
Verified in 200505250639.