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

Possible NullpointerException in ClusterManager.getCurBounds #1069

Closed
pstorch opened this Issue Jun 24, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@pstorch
Contributor

pstorch commented Jun 24, 2018

I stumpled upon a NullpointerException in the Android samples ClusterManager, like reported here:
https://groups.google.com/forum/#!topic/mapsforge-dev/kk2PRQbwSWw

Happening here:

currBoundingBox = new BoundingBox(nw_.latitude, se_.longitude, se_.latitude,

Looks like it's caused when the BoundingBox is not in the current viewport.

I've a small patch to handle possible null here. I'll send a PR with it.

pstorch added a commit to pstorch/mapsforge that referenced this issue Jun 24, 2018

fix mapsforge#1069 NPE in ClusterManager.getCurBounds()
The local variables nw_ and se_ might be null, if the BoundingBox is not in the current viewport.
This patch adds a null check.

@devemux86 devemux86 added the bug label Jun 24, 2018

@devemux86 devemux86 added this to the 0.10.0 milestone Jun 24, 2018

@devemux86 devemux86 closed this in 369de62 Jun 24, 2018

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