Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Cannot read property 'length' of null in _updateTaskCount #643

@ghost

Description

When trying to add Bing maps to an Angular 2 and 4 app, the map freezes the second time you try to zoom.

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request

Zone.js version: 0.7.7 and 0.7.6

Current behavior
Throws error and freezes the second time the map is zoomed (either by clicking the zoom button or scrolling).

Expected behavior
The map should continue to zoom.

Minimal reproduction of the problem with instructions
The issue can be seen at https://plnkr.co/edit/xF2rtWHPWyf4KcRdihzs?p=preview. After the map loads, click the zoom button (in or out) twice. The first time it zooms properly, the second time it throws an error and freezes. If using the scroll wheel, zoom once and allow the map to stop. Then scroll again to see the error.

The error is thrown in _updateTaskCount. The zoneDelegates variable is null when it's length is checked. I know a check could be wrapped around that for loop, but I'm not sure what the implications of that would be.

angular-bing-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions