Bug 122249 - DiagramRootEditPart#initWorkspaceViewerProperties() can cause NPE
Summary: DiagramRootEditPart#initWorkspaceViewerProperties() can cause NPE
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal
Target Milestone: ---   Edit
Assignee: Tom Macdougall CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-12-28 09:57 EST by Cherie Revells CLA
Modified: 2010-07-19 12:29 EDT (History)
0 users

See Also:


Attachments
patch for DiagramRootEditPart NPE (4.84 KB, patch)
2006-01-03 15:52 EST, Tom Macdougall CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cherie Revells CLA 2005-12-28 09:57:18 EST
A GMF client's tests are failing because of a NPE in #initWorkspaceViewerProperties().  We cannot assume that getWorkspaceViewerPreferences() will not return null.
Comment 1 Tom Macdougall CLA 2006-01-03 15:42:51 EST
Added checks for null on all getWorkspaceViewerPreferences calls that would potentially cause problems.
Comment 2 Tom Macdougall CLA 2006-01-03 15:52:15 EST
Created attachment 32430 [details]
patch for DiagramRootEditPart NPE
Comment 3 Tom Macdougall CLA 2006-01-03 16:00:19 EST
Commited code and provided patch
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:29:35 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug