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 84311

Summary: NPE on validate opened XML document after move
Product: xml Reporter: Maksim Khramov <mkhramov>
Component: ValidationAssignee: Nam Nguyen <nnguyen>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: ivansidorkin
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Maksim Khramov 2006-09-06 15:19:47 UTC
Create new BPEL module project
Create new folder under Process Files
Create new XML schema document in new folder and open it.
Drag and Drop schema from new folder to Process Files folder.
Invoke Validate XML command. The NPE is thrown:
java.lang.NullPointerException
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentModel.needsSync(AbstractDocumentModel.java:93)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:219)
	at
org.netbeans.modules.xml.validation.ValidationOutputWindowController.validate(ValidationOutputWindowController.java:56)
	at
org.netbeans.modules.xml.validation.ValidateAction$RunAction.run(ValidateAction.java:88)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Nam Nguyen 2006-09-07 01:49:53 UTC
The stack top is identical to issue 83590.  Cannot reproduce with latest code.

*** This issue has been marked as a duplicate of 83590 ***
Comment 2 Mikhail Matveev 2007-11-02 18:48:52 UTC
Verified duplicate