X Tutup
Skip to content

Handle unrecognized instructions in router#7183

Closed
tiziano88 wants to merge 1 commit intoangular:masterfrom
tiziano88:patch-1
Closed

Handle unrecognized instructions in router#7183
tiziano88 wants to merge 1 commit intoangular:masterfrom
tiziano88:patch-1

Conversation

@tiziano88
Copy link
Copy Markdown

This is currently throwing a null error when the instruction is not recognized by the router, and AFAICT there is no way to catch that.

This is currently throwing a null error when the instruction is not recognized by the router, and AFAICT there is no way to catch that.
@googlebot
Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

this.navigateByInstruction(instruction, isPresent(change['pop']))
.then((_) => {
// Instruction was not recognized, return immediately.
if (instruction == null) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not putting this check between line 432 and 433? And also use isBlank.

@tiziano88
Copy link
Copy Markdown
Author

Closing this in favour of #7203, since GitHub does not allow me to change the email address attached to a commit done via its UI, and I'm not sure @googlebot will notice the change anyway.

@tiziano88 tiziano88 closed this Feb 20, 2016
@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 8, 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.

3 participants

X Tutup