trun/flashblocks — Issue #4: Error when dropping outside of all IWorkspaceWidgets
Author: trun
Created: 2012-01-31 05:46:18+00:00
State: open

```
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.flashblocks::BlockDragLayer/onBlockDragComplete()[G:\Projects\flashblocks\src\com\flashblocks\BlockDragLayer.as:150]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at com.flashblocks::Workspace/rebroadcastEvent()[G:\Projects\flashblocks\src\com\flashblocks\Workspace.as:70]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at com.flashblocks.blocks::SimpleBlock/onMouseUp()[G:\Projects\flashblocks\src\com\flashblocks\blocks\SimpleBlock.as:151]
```
Repro'

```
Forward
Forward
```

Pick up one of the `Forward` blocks and drop it on a non-widget (e.g. the TurtleCanvas)