{"action":"closed","issue":{"url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/154","repository_url":"https://api.github.com/repos/appcelerator-modules/ti.map","labels_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/154/comments","events_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/154/events","html_url":"https://github.com/appcelerator-modules/ti.map/issues/154","id":145323942,"number":154,"title":"Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' ","user":{"login":"onury","id":3665990,"avatar_url":"https://avatars.githubusercontent.com/u/3665990?v=3","gravatar_id":"","url":"https://api.github.com/users/onury","html_url":"https://github.com/onury","followers_url":"https://api.github.com/users/onury/followers","following_url":"https://api.github.com/users/onury/following{/other_user}","gists_url":"https://api.github.com/users/onury/gists{/gist_id}","starred_url":"https://api.github.com/users/onury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onury/subscriptions","organizations_url":"https://api.github.com/users/onury/orgs","repos_url":"https://api.github.com/users/onury/repos","events_url":"https://api.github.com/users/onury/events{/privacy}","received_events_url":"https://api.github.com/users/onury/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-02T01:50:28Z","updated_at":"2016-04-20T22:07:46Z","closed_at":"2016-04-20T22:07:46Z","body":"I'm working with Android emulators and AFAIK, Google Play services is missing on emulators and map doesn't work.\r\n\r\nSo I've added conditional code (e.g. `TI_MAP.isGooglePlayServicesAvailable()`) to prevent the app crash. It works unstably and I get the following error when it crashes.\r\n\r\n```\r\n[ERROR] TiApplication: (main) [491,1279] Sending event: exception on thread: main msg:java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' on a null object reference; Titanium 5.2.1,2016/03/18 22:51,23e1c7d\r\n[ERROR] TiApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' on a null object reference\r\n[ERROR] TiApplication: \tat ti.map.TiUIMapView.release(TiUIMapView.java:899)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:539)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:536)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.ui.TabProxy.releaseViews(TabProxy.java:157)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.ui.TabGroupProxy.releaseViews(TabGroupProxy.java:559)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:429)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:109)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:117)\r\n[ERROR] TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] TiApplication: \tat android.os.Looper.loop(Looper.java:148)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\n[ERROR] TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n[ERROR] TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```\r\nThe stack trace is all Java so I cannot trace the source of this error.\r\n\r\nSDK version: 5.2.1.GA\r\nti.map version: SDK's version and tried the latest 2.3.8"}}