Bug 148623 - NullPointerException thrown in DiagramDocumentProvider
Summary: NullPointerException thrown in DiagramDocumentProvider
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   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-26 06:30 EDT by Maneesh CLA
Modified: 2010-07-19 12:26 EDT (History)
1 user (show)

See Also:


Attachments
DiagramDocumentEditor (44.79 KB, text/java)
2006-06-26 06:32 EDT, Maneesh CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maneesh CLA 2006-06-26 06:30:55 EDT
DiagramDocumentProvider throws NullPointerException when ActivationListener brings a message dialog which results in running event loop. Async Resource Events are processed at that time, resulting in processing of delete resource event. See the attached modified version of DiagramDocumentProvider. 

Summary of modification.
#handleEditorInputChanged is with a isHandlingElementDeletion flag which is set whenever delete is processed as part of activation.
ElementStateListener#elementDeleted uses this flag before handling deletion
Comment 1 Maneesh CLA 2006-06-26 06:32:22 EDT
Created attachment 45290 [details]
DiagramDocumentEditor

DiagramDocumentEditor.java with changes
Comment 2 Maneesh CLA 2006-07-07 11:24:38 EDT
A patch for this is merged with a patch attached to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149986
Comment 3 Anthony Hunter CLA 2006-07-11 11:09:04 EDT
Committed the fix to R1_0_maintenance
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:26:37 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug