java.lang.NegativeArraySizeException: -4

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.NegativeArraySizeException: -4
at cgeo.geocaching.utils.CanvasUtils.drawPath(CanvasUtils.java:25)
at cgeo.geocaching.maps.DirectionDrawer.drawDirection(DirectionDrawer.java:69)
at cgeo.geocaching.maps.PositionAndScaleOverlay.drawInternal(PositionAndScaleOverlay.java:78)
at cgeo.geocaching.maps.PositionAndScaleOverlay.drawOverlayBitmap(PositionAndScaleOverlay.java:67)
at cgeo.geocaching.maps.mapsforge.MapsforgeOverlay.drawOverlayBitmap(MapsforgeOverlay.java:32)
at org.mapsforge.v3.android.maps.overlay.Overlay.redrawOverlay(Overlay.java:313)
at org.mapsforge.v3.android.maps.overlay.Overlay.run(Overlay.java:250)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.