somehow host was null but dragImage wasn't
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6989ccf0 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6989ccf0 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6989ccf0 Branch: refs/heads/develop Commit: 6989ccf00d42472cdea42c1505261199736b541c Parents: 1a83e20 Author: Alex Harui <[email protected]> Authored: Tue Oct 28 09:47:40 2014 -0700 Committer: Alex Harui <[email protected]> Committed: Wed Oct 29 11:15:43 2014 -0700 ---------------------------------------------------------------------- .../org/apache/flex/html/beads/controllers/DragMouseController.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6989ccf0/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/controllers/DragMouseController.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/controllers/DragMouseController.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/controllers/DragMouseController.as index c9c9e03..0fbee44 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/controllers/DragMouseController.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/controllers/DragMouseController.as @@ -273,7 +273,7 @@ package org.apache.flex.html.beads.controllers dragging = false; dragSource = null; dragInitiator = null; - if (dragImage) + if (dragImage && host) host.removeElement(dragImage); dragImage = null; DisplayObject(_strand).stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMouseMoveHandler);
