diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-12-01 16:15:54 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-12-05 11:05:44 -0800 |
commit | 45b783c36ebd6824c95a927980fd862ea68b857d (patch) | |
tree | 4fa550270e384d69887447710a3c192b28f34703 | |
parent | 9b0459171d29a55e9332de0998e3653a689661fc (diff) | |
download | qtlocation-mapboxgl-upstream/custom-sources-flash-animation.tar.gz |
[android] null checkupstream/custom-sources-flash-animation
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySource.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySource.java index 1ff1eeacc3..62f1719ddf 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySource.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySource.java @@ -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); } } |