| Summary: | NPE thrown when opening a DTD file with the 'XPath' view open | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Remy Suen <remy.suen> |
| Component: | wst.xpath | Assignee: | Project Inbox <wst.xsl-inbox> |
| Status: | NEW --- | QA Contact: | Jesper Moller <jesper> |
| Severity: | normal | ||
| Priority: | P3 | CC: | d_a_carver, pwebster |
| Version: | 3.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Remy Suen
Suspect we need to check the content type, or set up a finer filter for which editors this view can be used with. Right now it is being enabled for all Structured Editors which it probably shouldn't be doing. The inverse is also a problem where you have an "invalid" file opened and then you try to open the 'XPath' view. The view will not get constructed. java.lang.NullPointerException at org.eclipse.wst.xml.xpath.ui.internal.views.XPathComputer.updateExpression(XPathComputer.java:122) at org.eclipse.wst.xml.xpath.ui.internal.views.XPathComputer.setText(XPathComputer.java:146) at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.recomputeXPath(XPathView.java:293) at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.editorActivated(XPathView.java:378) at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.initEditorListener(XPathView.java:353) at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.createPartControl(XPathView.java:204) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2245) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1145) at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3921) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3918) |