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

select_navpoint("") sometimes crashes. #3

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

select_navpoint("") sometimes crashes. #3

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
 1. Call select_navpoint with an empty string as the only argument.
 2. Sometimes, the empty string isn't in navPoints so an Exception is raised on line 105.

What is the expected output? What do you see instead?
 If navPoints doesn't contain the empty string, return false instead.

I fixed it in my local copy by replacing line 100 with the following:
if (__closestNavpointID__ == null || 
!navPoints.ContainsKey(__closestNavpointID__))

Original issue reported on code.google.com by [email protected] on 3 Apr 2014 at 11:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant