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 94770 - Partner view: deleting new operation with Delete key also resets the porttype; also NPE
Summary: Partner view: deleting new operation with Delete key also resets the porttype...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 20:42 UTC by jlautz
Modified: 2007-02-14 18:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE stacktraces. (3.53 KB, application/octet-stream)
2007-02-06 20:44 UTC, jlautz
Details
Starting point for this WSDL file. (1.95 KB, application/octet-stream)
2007-02-06 20:45 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-02-06 20:42:15 UTC
Seen on Windows XP with Gavotte build 070206 and JDK 1.5.0_10:

A few things are going on here:

1. Open attached WSDL file in Partner view.
2. In the WSDL view, right-click Port Types, and choose Add Port Type.
3. Select all defaults and click OK.
4. In Partner view, note that there is a new partnerlinktype. 
2. In the new partnerlinktype, select the operation, and click Delete. 

==> The selected operation is delete, but the port type is also reset, and I get
an NPE, too!

The WSDL file and stack traces for the NPEs are attached. The exception dialog
contains two stack traces in the same order as in the attached file.
Comment 1 jlautz 2007-02-06 20:44:36 UTC
Created attachment 38141 [details]
NPE stacktraces.
Comment 2 jlautz 2007-02-06 20:45:39 UTC
Created attachment 38142 [details]
Starting point for this WSDL file.
Comment 3 jlautz 2007-02-06 20:47:27 UTC
I get the same behavior with the Delete key on the existing partnerlinktype
porttype operation in the attached wsdl file. 
Comment 4 Shivanand Kini 2007-02-08 05:11:13 UTC
Fixed this. Did not get a NPE
Comment 5 jlautz 2007-02-14 18:29:35 UTC
Verified on Windows XP with EP Gavotte 070214_2 and JDK 1.5.0_10.