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 174594 - Null pointer exception when deleting a message
Summary: Null pointer exception when deleting a message
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 22:42 UTC by jlautz
Modified: 2009-10-31 00:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (51.17 KB, text/plain)
2009-10-14 22:42 UTC, jlautz
Details
wsdl file (3.74 KB, text/plain)
2009-10-14 22:47 UTC, jlautz
Details

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

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

2. In the WSDL view of the WSDL editor, delete 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 22:42:52 UTC
Created attachment 89484 [details]
IDE log file
Comment 2 jlautz 2009-10-14 22:47:23 UTC
Created attachment 89486 [details]
wsdl file
Comment 3 Sergey Lunegov 2009-10-15 07:47:25 UTC
Vladimir, exception seems very similar to one in 174584
Comment 4 Vladimir Yaroslavskiy 2009-10-15 12:43:43 UTC
fixed in gfesbv22: 03787e31a965
Comment 5 jlautz 2009-10-31 00:42:44 UTC
Verified fixed with PRODUCT_NAME=Glassfish ESB PRODUCT_BUILD=20091029-0719 (NB 6.7.1).