Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328210

Summary: when change the file name , NullPointerException happen
Product: [WebTools] WTP Source Editing Reporter: DartPeng <blackfrezee>
Component: wst.xmlAssignee: wst.xml <wst.xml-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description DartPeng CLA 2010-10-20 02:53:30 EDT
Build Identifier: I20100608-0911

Open the xml file with XML editor , then change the extention name of the xml file , eclipse will throw NullPointerException.


Reproducible: Always

Steps to Reproduce:
1. Create project
2. Create xml file and open the xml editor
3. Try to rename the xml file and remove xml extension (you can try use .x or anything else than xml - it works as well)
Comment 1 Nick Sandonato CLA 2010-10-20 08:26:03 EDT
This is ultimately a limitation of the Structured Text Editor and its dependency on content types to support the structured model and this NPE and other problems stem from it being an unsupported content type in the Structured Text Editor. Bug 320996 has already been opened to investigate.

*** This bug has been marked as a duplicate of bug 320996 ***