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.
Reproduced in build 060827 (JDK 1.6 beta 2). To reproduce the bug: - open flattened OTA schema; - apply Russian Doll design pattern to the schema; - while the pattern is being applied, delete the schema from the project. 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.axi.impl.AXIModelImpl.syncStarted(AXIModelImpl.java:145) at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:220) at org.netbeans.modules.xml.axi.impl.DefaultSchemaGenerator$TransformHelper.execute(DefaultSchemaGenerator.java:676) at org.netbeans.modules.xml.axi.impl.DefaultSchemaGenerator.transformSchema(DefaultSchemaGenerator.java:113) at org.netbeans.modules.xml.axi.impl.SchemaGeneratorFactoryImpl.transformSchema(SchemaGeneratorFactoryImpl.java:111) at org.netbeans.modules.xml.schema.abe.wizard.SchemaTransformWizard$1.run(SchemaTransformWizard.java:115) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Fixed by checking for null return from model source lookup. /cvs/xml/xam/src/org/netbeans/modules/xml/xam/dom/Attic/AbstractDocumentModel.java,v <-- AbstractDocumentModel.java new revision: 1.1.2.23; previous revision: 1.1.2.22
Verified in build 060831_2.
*** Issue 84311 has been marked as a duplicate of this issue. ***