Bug 111664 - PropertiesBrowserPage throws NPE if there is no structured selection when the label provider changed event is handled
Summary: PropertiesBrowserPage throws NPE if there is no structured selection when the...
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: ---   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-10-05 14:20 EDT by Dusko CLA
Modified: 2010-07-19 21:54 EDT (History)
0 users

See Also:


Attachments
patch (1.03 KB, patch)
2005-10-05 14:22 EDT, Dusko CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dusko CLA 2005-10-05 14:20:49 EDT
If there is no structured selection when the label provider changed event is 
handled, the NPE is thrown.

It can also have serious performance impact when there is lot of events since 
those exceptions are logged to the file system.

I also have attached a patch that remedies this problem.
Comment 1 Dusko CLA 2005-10-05 14:22:04 EDT
Created attachment 27885 [details]
patch
Comment 2 Anthony Hunter CLA 2005-10-05 14:34:22 EDT
Committed the patch
Comment 3 Anthony Hunter CLA 2005-10-05 15:39:40 EDT
Committed the patch
Comment 4 Eclipse Webmaster CLA 2010-07-19 21:54:36 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Common was the original product and component for this bug