[android] null check

This commit is contained in:
Asheem Mamoowala
2017-12-01 16:15:54 -08:00
parent 31a216459c
commit f26c5ef2f0

View File

@@ -191,7 +191,7 @@ public class CustomGeometrySource extends Source {
FeatureCollection data = provider.getFeaturesForBounds(LatLngBounds.from(id.z, id.x, id.y), id.z);
CustomGeometrySource source = sourceRef.get();
if (!isCancelled() && source != null && !data.getFeatures().isEmpty()) {
if (!isCancelled() && source != null && data != null) {
source.setTileData(id, data);
}
}