question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SpatialRuleLookupArray.lookupRule throws exception

See original GitHub issue

if exact == true and isBorderTile then the empty rule container passes this if clause and we throw an exception for rule.getBorders() here

Is there a return SpatialRule.EMPTY; missing in the mentioned if clause?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
boldtrncommented, May 30, 2017

(and it looks like we miss a setBorders call in GraphHopperModule.createGraphHopper -> createSpatialRule. I’ll have to add an integration test after this both fixed)

How would we write an IT for this? The only option I can see is to import a border region and try to route between the regions.

1reaction
boldtrncommented, May 30, 2017

if exact == true and isBorderTile

I also added a test for this case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Throw Exceptions in Java - Rollbar
Throwing an exception is as simple as using the "throw" statement. You then specify the Exception object you wish to throw. Every Exception...
Read more >
throw - JavaScript - MDN Web Docs - Mozilla
The throw statement throws a user-defined exception. Execution of the current function will stop (the statements after throw won't be executed), ...
Read more >
How to Throw Exceptions (The Java™ Tutorials > Essential ...
This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
Read more >
Creating and Throwing Exceptions | Microsoft Learn
Learn about creating and throwing exceptions. Exceptions are used to indicate that an error has occurred while running a program.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found