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 45512 - [freeform] adding custom menu throws NPE
Summary: [freeform] adding custom menu throws NPE
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-06-24 14:22 UTC by zikmund
Modified: 2006-03-24 10:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException (3.20 KB, text/plain)
2004-06-24 14:22 UTC, zikmund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-06-24 14:22:18 UTC
Build 200406231800

1) Have a WebApp project with Existing Ant Script
2) Properties on project
3) Build and Run
4) press Add -- an empty line added
5) click Label to edit
6) NullPointerException -- see attachment
Notice: it's repreatly thrown.
Comment 1 zikmund 2004-06-24 14:22:47 UTC
Created attachment 15985 [details]
NullPointerException
Comment 2 Radko Najman 2004-06-28 15:23:08 UTC
It happens for J2SE freeform project as well. Reassigning to David.

I can reproduce it by the following way:
1. Build and Run properties
2. Press Add button
3. Click Ant Target field to edit
4. Write nothing
5. Click Label field to edit
6. NPE is thrown
Comment 3 Jiri Rechtacek 2004-07-14 16:01:19 UTC
Checking in
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.16; previous revision: 1.15
done
Comment 4 zikmund 2004-07-20 11:29:59 UTC
Verified.