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 174584 - Null pointer exception when deleting a message part
Summary: Null pointer exception when deleting a message part
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 19:23 UTC by jlautz
Modified: 2009-10-31 00:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wsdl file (3.78 KB, text/plain)
2009-10-14 19:28 UTC, jlautz
Details
IDE log file (76.12 KB, text/plain)
2009-10-14 19:29 UTC, jlautz
Details
proposed path (807 bytes, patch)
2009-10-14 19:55 UTC, Shivanand Kini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2009-10-14 19:23:43 UTC
Seen with NetBeans 6.7.1.

1. Create a new WSDL document that contains at least one message with at least one part in the message. An example is
attached.

2. Delete a part from a message.

3. Click the Refactor button in the dialog.

4. An error dialog pops up with the following error message:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.wsdl.refactoring.WSDLWhereUsedRefactoringPlugin.prepare(WSDLWhereUsedRefactoringPlugin.java:134)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:214)
	at
org.netbeans.modules.xml.schema.refactoring.SchemaSafeDeleteRefactoringPlugin.prepare(SchemaSafeDeleteRefactoringPlugin.java:171)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:214)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:802)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)

(If the dialog doesn't pop up, there is a red icon flashing in the lower-right-hand corner; click it to see the message.
Also, the errors are written to the log file.)

There are actually multiple NPEs, and the log is attached.
Comment 1 jlautz 2009-10-14 19:28:30 UTC
Created attachment 89473 [details]
wsdl file
Comment 2 jlautz 2009-10-14 19:29:35 UTC
Created attachment 89474 [details]
IDE log file
Comment 3 Shivanand Kini 2009-10-14 19:55:19 UTC
Created attachment 89476 [details]
proposed path
Comment 4 Shivanand Kini 2009-10-14 19:56:40 UTC
Vladimir, seems to be a regression caused by one of your checkins. Can you look at this?
Attached a patch.
Comment 5 Vladimir Yaroslavskiy 2009-10-15 12:43:46 UTC
fixed in gfesbv22: 03787e31a965
Comment 6 jlautz 2009-10-31 00:41:05 UTC
Verified fixed with PRODUCT_NAME=Glassfish ESB PRODUCT_BUILD=20091029-0719 (NB 6.7.1).