Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 64428 - Null pointer exception in XMLContentDescriber
Summary: Null pointer exception in XMLContentDescriber
Status: RESOLVED DUPLICATE of bug 64277
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-27 15:36 EDT by Patrick Kelley CLA
Modified: 2004-05-27 15:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Kelley CLA 2004-05-27 15:36:04 EDT
Just started using build 200405140800, and we noticed this null pointer 
exception when the SSE XML model is about to save:

java.lang.NullPointerException
at org.eclipse.core.internal.content.XMLContentDescriber.describe
(XMLContentDescriber.java:77)
at org.eclipse.core.internal.content.ContentType.describe(ContentType.java:183)
at 
org.eclipse.core.internal.content.ContentTypeManager.internalFindContentTypesFo
r(ContentTypeManager.java:320)
at org.eclipse.core.internal.content.ContentTypeManager.getDescriptionFor
(ContentTypeManager.java:277)
at com.ibm.encoding.resource.CodedStreamCreator.checkForEncodingInContents
(CodedStreamCreator.java:404)
at com.ibm.encoding.resource.CodedStreamCreator.analyze
(CodedStreamCreator.java:112)
at com.ibm.encoding.resource.CodedStreamCreator.getCurrentEncodingMemento
(CodedStreamCreator.java:317)
at com.ibm.encoding.resource.CodedStreamCreator.dump
(CodedStreamCreator.java:202)
at com.ibm.encoding.resource.CodedStreamCreator.getCodedByteArrayOutputStream
(CodedStreamCreator.java:308)
at com.ibm.sse.model.ModelManagerImpl.saveStructuredDocument
(ModelManagerImpl.java:1668)
[..deleted..]

XMLContentDescriber.describe() doesn't deal with a null "description" 
parameter,
which is bad news since ContentTypeManager.internalFindContentsFor() is passing
a null description explicitly.
Comment 1 Rafael Chaves CLA 2004-05-27 15:40:52 EDT
That is true. This has been reported yesterday and fixed right away.

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