Bug fix: null pointer crash
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180122-1635" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180122-1657" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/googlemaps-cdv-plugin.js
www/googlemaps-cdv-plugin.js
@@ -700,7 +700,7 @@ if (!cordova) {
if (common.isDom(oldDiv)) {
oldDiv.removeAttribute('__pluginMapId');
var ele = oldDiv;
- while(ele != document.body.parentNode) {
+ while(ele && ele != document.body.parentNode) {
elemId = ele.getAttribute('__pluginDomId');
if (elemId) {
domPositions[elemId].containMapIDs = domPositions[elemId].containMapIDs || {};

Bug fix: null pointer crash