hi! i dont know if i found a bug.
i found that the function fireMapListenerEvent() checks if listeners is not null, but when you remove all the listeners, the variable doesnt become null
private void fireMapListenerEvent() {
// assuming always EDT
if(listeners != null) {
for(MapListener l : listeners) {
l.mapPositionUpdated(this, _zoom, getCenter());
}
}
}
public void removeMapListener(MapListener listener) {
if(listeners == null) {
return;
}
listeners.remove(listener);
}
should the removeMapListener set null to the listenes variable if does not have any elements?
thanks
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device