Skip to content

Commit 7e494b0

Browse files
author
Peter
committed
workaround to avoid exception, see graphhopper#435
1 parent 021f0c6 commit 7e494b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/com/graphhopper/storage/EdgeAccess.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ private int distToInt( double distance )
8686
if (integ < 0)
8787
throw new IllegalArgumentException("Distance cannot be negative: " + distance);
8888
if (integ >= Integer.MAX_VALUE)
89-
throw new IllegalArgumentException("Distance too large leading to overflowed integer (#435): " + distance + " ");
89+
return Integer.MAX_VALUE;
90+
// throw new IllegalArgumentException("Distance too large leading to overflowed integer (#435): " + distance + " ");
9091
return integ;
9192
}
9293

0 commit comments

Comments
 (0)