Community
Participate
Working Groups
With the new Content Model View open on an xml file, try typing in an element that doesn't exist in the schema. You will get the attached NPE multiple times.
Do you have a stack trace, and maybe a short example that can be used to reproduce the result?
Created attachment 207944 [details] NPE stack trace Sorry, forgot to attach the file! As an example, create a new xml file from an XML schema file. I chose an XML catalog entry and picked http://java.sun.com/xml/ns/j2ee/application_1_4.xsd . In the created xml file, begin to type in a new element "<f" and the attached NPE occurs. This is only if the Content Model view is open.
I'm using e4 platform as well, not sure if that matters. I'm using wtp build 3.4.0-20111201045309
(In reply to comment #2) > Created attachment 207944 [details] > NPE stack trace > > Sorry, forgot to attach the file! > > As an example, create a new xml file from an XML schema file. I chose an XML > catalog entry and picked http://java.sun.com/xml/ns/j2ee/application_1_4.xsd . > In the created xml file, begin to type in a new element "<f" and the attached > NPE occurs. This is only if the Content Model view is open. Okay, so in this case, how do you want it to be displayed in the Content Model? Should it be displayed as <unknown> or <any>?
Seems I never responded to this, mainly because it doesn't really matter to me what is displayed in this case. Not sure what the functiuonal requirements should be. I just wanted to report that I was seeing this NPE which is easy to hit if you are hand editing an xml file. I will say that I like the new view overall!
Added a warning message to the view when the selected element is not in the content model.