Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 119767

Summary: NPE in TargetingTool.updateTargetUnderMouse
Product: [Tools] GEF Reporter: Chris Lee <eclipse>
Component: GEF-Legacy GEF (MVC)Assignee: Randy Hudson <hudsonr>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: crevells
Version: 3.1   
Target Milestone: 3.2.0 (Callisto) M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace of NPE none

Description Chris Lee CLA 2005-12-07 18:36:29 EST
I can reliably reproduce this NPE with both the logic and shapes example:

1. Begin dragging any object on the canvas
2. While the left mouse button is held down (dragging), press and release the right mouse button (brings up the context menu).
3. Let go of the left mouse button and move the mouse to the palette.  Select a palette item.  NullPointerException occurs.
Comment 1 Chris Lee CLA 2005-12-07 18:37:47 EST
Created attachment 31353 [details]
stack trace of NPE

This stack trace was produced using the GEF shapes example and the steps provided in the bug.
Comment 2 Randy Hudson CLA 2006-01-05 11:24:42 EST
The fix I made was to no longer call unlockTargetEditPart(). Instead, the targetlock flag is reset by extending resetFlags().

Sound OK?
Comment 3 Randy Hudson CLA 2006-02-09 17:09:19 EST
released to HEAD
Comment 4 Randy Hudson CLA 2006-05-09 14:27:55 EDT
*** Bug 140809 has been marked as a duplicate of this bug. ***