# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\nam\gavotte\xml\xdm # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/org/netbeans/modules/xml/xdm/xam/XDMAccess.java *** C:\nam\gavotte\xml\xdm\src\org\netbeans\modules\xml\xdm\xam\XDMAccess.java Base (1.1.2.22.6.2) --- C:\nam\gavotte\xml\xdm\src\org\netbeans\modules\xml\xdm\xam\XDMAccess.java Locally Modified (Based On 1.1.2.22.6.2) *************** *** 104,109 **** --- 104,112 ---- xdmModel.sync(); if(xdmModel.getStatus() == XDMModel.Status.STABLE){ Element root = Element.class.cast(xdmModel.getDocument().getDocumentElement()); + if (root == null) { + throw new IOException("Cannot create model from non-XML document"); + } if (model.createRootComponent(root) == null) { throw new IOException("Cannot create model with "+ new QName(root.getNamespaceURI(), root.getLocalName())); Index: catalog.xml *** C:\nam\gavotte\xml\xdm\catalog.xml No Base Revision --- C:\nam\gavotte\xml\xdm\catalog.xml Locally New