Bug 149073 - NPE thrown in DiagramIOUtil
Summary: NPE thrown in DiagramIOUtil
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 1.0.1   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-06-28 15:44 EDT by Maneesh CLA
Modified: 2010-07-19 12:26 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 Maneesh CLA 2006-06-28 15:44:37 EDT
org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.util.DiagramIOUtil throws NPE when logging another exception.

On line 196
				thrownExcp = new CoreException(new Status(IStatus.ERROR, EditorPlugin.getPluginId(), EditorStatusCodes.ERROR, e.getMessage(), e));

e.getMessage() is null and Status can't be created with null message. Status throws NPE.
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:60)
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:44)
	at org.eclipse.core.runtime.Status.setMessage(Status.java:175)
	at org.eclipse.core.runtime.Status.<init>(Status.java:82)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.util.DiagramIOUtil.load(DiagramIOUtil.java:196)
Comment 1 Maneesh CLA 2006-07-07 11:25:43 EDT
A patch for this is attached in bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149987
Comment 2 Anthony Hunter CLA 2006-07-11 11:10:10 EDT
Committed patch to R1_0_maintenance
Comment 3 Eclipse Webmaster CLA 2010-07-19 12:26:51 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug