fix: Android - NullPointerException on AsyncLoadImage
MODIFY
src/android/plugin/google/maps/AsyncLoadImage.java
src/android/plugin/google/maps/AsyncLoadImage.java
@@ -125,6 +125,11 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
}
String currentPage = webView.getUrl();
+ if (currentPage == null) {
+ // Maybe someone close the map page.
+ this.cancel(true);
+ return;
+ }
currentPage = currentPage.replaceAll("#.*$", "");
currentPage = currentPage.replaceAll("\\?.*$", "");
currentPage = currentPage.replaceAll("[^\\/]*$", "");

fix: #2689 Android - NullPointerException on AsyncLoadImage