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 109304 - NPE when propertyAlias is selected after referenced message part is deleted
Summary: NPE when propertyAlias is selected after referenced message part is deleted
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 00:17 UTC by jlautz
Modified: 2007-09-20 14:05 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace for NullPointerException. (3.49 KB, application/octet-stream)
2007-07-11 00:18 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-07-11 00:17:02 UTC
Seen in 
Product Version: NetBeans IDE Dev (Build 200707070000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System:
Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\lautz\.netbeans\dev

1. Create a new valid WSDL file, like the default file created by the WSDL wizard.
2. Add a Property extensibility element.
3. Add a PropertyAlias extensibility element that references the new Property element as its propertyName
property/attribute.
4. Set the ElementOrTypeOrMessagePart property for the new PropertyAlias element to an existing message part.
5. Delete the message part selected in step 4 (click Refactor).
6. Click on the PropertyAlias element created in step 3.

==> NPE. Stack trace attached.
Comment 1 jlautz 2007-07-11 00:18:01 UTC
Created attachment 44914 [details]
Stack trace for NullPointerException.
Comment 2 Shivanand Kini 2007-07-12 02:02:43 UTC
Fixed the NPE.

But refactoring should have caught the usage of the message/part in the property alias.

Sonali, this used to work before in 5.5. ExtensibilityElement are not part of find usages/refactoring anymore?
Comment 3 Shivanand Kini 2007-07-24 22:14:30 UTC
Found that the bpel refactoring, does not provide refactoring plugin for safely delete action.
That seems to be the reason for not finding property alias, during part deletion.

Assigning to bpel refactoring.
Comment 4 Vladimir Yaroslavskiy 2007-09-20 14:05:25 UTC
Fixed.