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.
[Nb Build 200209100100, jdk1.4.1-rc-b19] Expanding DTD or XML nodes throws NullPointerException. Other nodes like Java, ANT, etc. vorks fine.
Created attachment 7361 [details] NullPointerException
Fixed in main trunk. http://xml.netbeans.org/servlets/ReadMsg?msgId=377432&listName=cvs
If I understand it correctly, you have a subclass of FilterNode tnat directly manipulates the "protected Node original" field and even set it to null. I myself consider it breaking the contract as the doc of the field is: /** Original node. Should not be modified. */ protected Node original; only since openapi 1.39, there is a protected changeOriginal(Node) which does all the actions needed to correctly replace the original node while your updateOriginal(Node) does none of them. Please consider rewriting that stuff, you can get more NPEs otherwise.
I meant subclass of FilterNode.Children
Petr, you are right. It was written in time the changeOriginal(Node) method did not exist. I will rewrite it to use the method.
Fixed also in QBE200209110100 branch.
VERIFIED