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 262673 - generateXML
Summary: generateXML
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-04 20:51 UTC by Exceptions Reporter
Modified: 2017-03-16 02:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225025


Attachments
stacktrace (1.51 KB, text/plain)
2016-07-04 20:52 UTC, Exceptions Reporter
Details
stacktrace (1.51 KB, text/plain)
2016-07-16 22:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-07-04 20:51:58 UTC
This bug was originally marked as duplicate of bug 245434, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Windows 7

User Comments:
GUEST: NullPointerException at org.netbeans.modules.xml.wizard.XMLGeneratorVisitor.generateXML

misterm: .

misterm: .

misterm: Finishing wizard

misterm: .




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.xml.wizard.XMLGeneratorVisitor.generateXML(XMLGeneratorVisitor.java:136)
   at org.netbeans.modules.xml.wizard.XMLGeneratorVisitor.generateXML(XMLGeneratorVisitor.java:166)
   at org.netbeans.modules.xml.wizard.impl.XMLWizardIterator.generateXMLBody(XMLWizardIterator.java:500)
   at org.netbeans.modules.xml.wizard.impl.XMLWizardIterator.prepareParameters(XMLWizardIterator.java:731)
   at org.netbeans.modules.xml.wizard.impl.XMLWizardIterator.instantiate(XMLWizardIterator.java:231)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
Comment 1 Exceptions Reporter 2016-07-04 20:52:01 UTC
Created attachment 160252 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-07-16 22:06:55 UTC
Created attachment 160413 [details]
stacktrace

Creating an xml document with a schema
Comment 3 Svata Dedic 2017-03-14 08:31:44 UTC
fixed in jet-main#33f868d2ba29
Comment 4 Quality Engineering 2017-03-16 02:50:37 UTC
Integrated into 'main-silver', will be available in build *201703160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/33f868d2ba29
User: Svata Dedic <sdedic@netbeans.org>
Log: #262673: fixed NPE when rootElement is unknown