react-native-maps 1.26.7 → 1.26.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -268,7 +268,7 @@ public class MarkerManager extends ViewGroupManager<MapMarker> implements RNMaps
268
268
  public void redraw(MapMarker view) {
269
269
  view.redraw();
270
270
  }
271
-
271
+
272
272
  @Override
273
273
  public void addView(MapMarker parent, View child, int index) {
274
274
  // if an <Callout /> component is a child, then it is a callout view, NOT part of the
@@ -284,7 +284,9 @@ public class MarkerManager extends ViewGroupManager<MapMarker> implements RNMaps
284
284
  int newWidth = right - left;
285
285
  int newHeight = bottom - top;
286
286
  MapMarker marker = (MapMarker) v.getParent();
287
- marker.update(newWidth, newHeight);
287
+ if(marker != null){
288
+ marker.update(newWidth, newHeight);
289
+ }
288
290
  }
289
291
  });
290
292
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "src/index.ts",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "1.26.7",
8
+ "version": "1.26.8",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",