Bug 151859 - [Cleanup] NPE in handling double click
Summary: [Cleanup] NPE in handling double click
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 2.1   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 11:05 EDT by Randy Hudson CLA
Modified: 2010-07-19 21:56 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 Randy Hudson CLA 2006-07-26 11:05:23 EDT
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette$3.mouseDoubleClick(DiagramEditorWithFlyOutPalette.java:241)
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:141)
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)

The active tool in the palette viewer is NULL, causing GMF to throw a null pointer exception.
Comment 1 Anthony Hunter CLA 2006-08-18 11:30:31 EDT
You need to help us what you are double clicking on.

Can you duplicate with a GMF Example, since I assume this is happening in your application.
Comment 2 Randy Hudson CLA 2006-08-18 13:25:13 EDT
Remove the SelectionTool entry from any GMF example's Palette and you should be able to reproduce. It's pretty straightforward. NULL is a valid return value for the method being called at line 241.
Comment 3 Anthony Hunter CLA 2007-06-19 11:44:06 EDT
Moving to the next release, GMF 2.1. 
Comment 4 Eclipse Webmaster CLA 2010-07-19 21:56:59 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug