Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(projection): allow to project to a non text node #3241

Closed
wants to merge 1 commit into from

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Jul 23, 2015

We already had a test for this, but too low level that it did not catch this null value in hasNativeShadowRoot

Fixes #3230

@tbosch tbosch added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 23, 2015
@@ -339,7 +339,7 @@ function updateElementBinderTextNodeIndices(elementBinder: DomElementBinder,
eventLocals: null,
localEvents: [],
globalEvents: [],
hasNativeShadowRoot: null
hasNativeShadowRoot: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this field strictly a boolean or it has three states - null | false | true?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you set it to false in the constructor, like

onlySelf = isPresent(onlySelf) ? onlySelf : false;

@rkirov rkirov added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 23, 2015
We already had a test for this, but too low level that it did not catch this null value in `hasNativeShadowRoot`

Fixes angular#3230
@tbosch tbosch closed this in b44b06c Jul 23, 2015
@tbosch tbosch deleted the project-text branch July 23, 2015 21:29
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DomElementBinder#hasNativeShadowRoot is null, not false, resulting in an NPE in...
3 participants