mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[by kirill.kalishev] NPE in DnD manager
(on dragging Docky icon over project view)
This commit is contained in:
@@ -159,7 +159,10 @@ public class DnDManagerImpl extends DnDManager implements DnDEvent.DropTargetHig
|
||||
|
||||
if (currentEvent == null) return currentEvent;
|
||||
|
||||
currentEvent.updateAction(getDnDActionForPlatformAction(nativeAction));
|
||||
final DnDAction dndAction = getDnDActionForPlatformAction(nativeAction);
|
||||
if (dndAction == null) return null;
|
||||
|
||||
currentEvent.updateAction(dndAction);
|
||||
currentEvent.setPoint(aPoint);
|
||||
currentEvent.setHandlerComponent(aComponentOverDragging);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user