Skip to content

fix(router): throw an error when navigate to null/undefined path#13384

Closed
DzmitryShylovich wants to merge 1 commit intoangular:masterfrom
DzmitryShylovich:gh/10560
Closed

fix(router): throw an error when navigate to null/undefined path#13384
DzmitryShylovich wants to merge 1 commit intoangular:masterfrom
DzmitryShylovich:gh/10560

Conversation

@DzmitryShylovich
Copy link
Copy Markdown
Contributor

Closes #10560

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

commands.forEach(cmd, i => ...
   `... contains ${cmd} at index ${i}...`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

forEach skips undefined elements

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah right it would skip holes... (but not undefined els) I guess a for is better then.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

make a function outside of the class. Thanks

@vicb vicb added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews pr_state: LGTM action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker labels Jan 5, 2017
matsko pushed a commit that referenced this pull request Jan 9, 2017
@matsko matsko closed this in 46cb04d Jan 10, 2017
@matsko
Copy link
Copy Markdown
Contributor

matsko commented Jan 10, 2017

The v4 commit is 46cb04d

@matsko matsko reopened this Jan 10, 2017
@matsko matsko closed this Jan 10, 2017
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 10, 2019
idlechara pushed a commit to idlechara/angular that referenced this pull request Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Router.navigate fails with unhelpful error if undefined is part of the path

5 participants