Skip to content

Exception when try to move blocks within blockly div when blocks start shaking #2929

@ankuraga1508

Description

@ankuraga1508

Describe the bug

Exception in the developer console when trying to move blocks after blocks start shaking

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://blockly-demo.appspot.com/static/demos/fixed/index.html
  2. Open developer console
  3. Drag blocks in the blockly area over each other until there is no space left or blocks start shaking.
  4. Now remove any block by putting it back
  5. Notice this exception :
    blockly_compressed.js:1802 Uncaught TypeError: Cannot read property 'getRootBlock' of null
    at blockly_compressed.js:1802
    at Blockly.WorkspaceSvg.Blockly.Workspace.fireChangeListener (blockly_compressed.js:1016)
    at Blockly.Events.fireNow_ (blockly_compressed.js:917)

Expected behavior

There should not be any error

Capture

Video showing the steps
Video.zip

ChromeOS : 74.0.3729.159 (Official Build) (64-bit)
Platform: 11895.118.0 (Official Build)
JavaScript: V8 7.4.288.28
Flash: 32.0.0.171

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrong

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions