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

Avoids out of bounds exception in addTrafficToSource() #384

Merged
merged 4 commits into from
Oct 17, 2017

Conversation

zugaldia
Copy link
Member

@zugaldia zugaldia commented Oct 17, 2017

@zugaldia zugaldia requested a review from cammace October 17, 2017 03:57
@zugaldia zugaldia added this to the v0.6.3 milestone Oct 17, 2017
Copy link
Contributor

@cammace cammace left a comment

Choose a reason for hiding this comment

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

@ericrwolfe can you link the ticket that's tracking this upstream? This is for sure a bug in the directions API and this if the if statement in this fix evaluates to false, no directions route will be drawn.

@zugaldia wondering if we should throw a runtime exception here so people know why the route line isn't being drawn.

@cammace cammace mentioned this pull request Oct 17, 2017
9 tasks
@cammace cammace merged commit 8928b0c into release-0.6.3 Oct 17, 2017
@cammace cammace deleted the fix-oob branch October 17, 2017 14:26
@ericrwolfe
Copy link
Contributor

if the if statement in this fix evaluates to false, no directions route will be drawn.

@cammace @danesfeder if the directions request is invalid, we should just return the base directions route without any traffic, rather than not drawing any route as you've mentioned. Can we update?

@cammace
Copy link
Contributor

cammace commented Oct 17, 2017

After talking with @danesfeder, I was wrong, this simply means it wouldn't draw the traffic. Should be good here.

cammace pushed a commit that referenced this pull request Oct 19, 2017
* Do not allow rotation for Nav UI (#377)

* Support for multiple reroute metric collection (#348)

* capture sessionState and add to queue when reroute occurs

* Resolved several issues which related to location

* fix checkstyle for NavigationMetricsWrapper

* enable extra logging in debug mode

* add option to log telemetry requests when debug mode is enabled

* seconds no null anymore

* make SessionState fields unique

* add test for ringbuffer peak methods

* create a copy of the location object when snapping a location

* make sure the buffer keeps adding fresh values

* Avoids out of bounds exception in addTrafficToSource() (#384)

* avoids out of bounds exception

* added index out of bounds exception

* Undo throwing exception

* force git to push

* Updated changelog and readme

* More reroute fixes (#389)

* removed collection reverse

* fix lastrerouteseconds

* set the queued reroute events to represent new values

* checkstyle

* fixed total distance completed not getting set

* make sure that the reroute event includes the reroute time as the created timestamp (#398)

* temporarily change circle ci publish branch

* [android] [auto] Update properties to version 0.6.3 in preparation for build.

* change circleci script back to using master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants