Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

fix(backend): skip node if there is no associated TViewData #804

Merged
merged 2 commits into from May 26, 2021

Conversation

markwhitfeld
Copy link
Contributor

The code was assuming that the TViewData item at the same index as the node
in LView would contain a data entry. This value can be null (which is the
case in our app), which causes a catastrophic failure in the dev tool. By
checking for null, the node is skipped because it cannot determine the
associated component or directive and the dev tool does not die.

fixes issue #801

@markwhitfeld
Copy link
Contributor Author

Build failure may just be the flaky CI as described in another PR.
Could someone re-run the CI for this PR?

@markwhitfeld
Copy link
Contributor Author

Ok, build passes now. So it was the flaky CI.

Copy link
Contributor

@mgechev mgechev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a minor style-related comment.

The code was assuming that the TViewData item at the same index as the node
in LView would contain a data entry. This value can be `null` (which is the
case in our app), which causes a catastrophic failure in the dev tool. By
checking for null, the node is skipped because it cannot determine the
associated component or directive and the dev tool does not die.

fixes issue rangle#801
@markwhitfeld
Copy link
Contributor Author

Rebased on main and resolved style issue raised by @mgechev .

@mgechev mgechev merged commit 7693e82 into rangle:main May 26, 2021
@markwhitfeld markwhitfeld deleted the fix/handle-null-in-tviewdata branch May 27, 2021 09:10
AleksanderBodurri pushed a commit to AleksanderBodurri/angular-devtools that referenced this pull request Sep 16, 2021
* fix(backend): skip node if there is no associated TViewData

The code was assuming that the TViewData item at the same index as the node
in LView would contain a data entry. This value can be `null` (which is the
case in our app), which causes a catastrophic failure in the dev tool. By
checking for null, the node is skipped because it cannot determine the
associated component or directive and the dev tool does not die.

fixes issue rangle#801

* chore: style tweak - add early return to avoid nesting
AleksanderBodurri pushed a commit to AleksanderBodurri/angular-devtools that referenced this pull request Sep 27, 2021
)

* fix(backend): skip node if there is no associated TViewData

The code was assuming that the TViewData item at the same index as the node
in LView would contain a data entry. This value can be `null` (which is the
case in our app), which causes a catastrophic failure in the dev tool. By
checking for null, the node is skipped because it cannot determine the
associated component or directive and the dev tool does not die.

fixes issue rangle#801

* chore: style tweak - add early return to avoid nesting
AleksanderBodurri pushed a commit to AleksanderBodurri/angular-devtools that referenced this pull request Oct 27, 2021
* fix(backend): skip node if there is no associated TViewData

The code was assuming that the TViewData item at the same index as the node
in LView would contain a data entry. This value can be `null` (which is the
case in our app), which causes a catastrophic failure in the dev tool. By
checking for null, the node is skipped because it cannot determine the
associated component or directive and the dev tool does not die.

fixes issue rangle#801

* chore: style tweak - add early return to avoid nesting
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants