{"action":"created","issue":{"url":"https://api.github.com/repos/react-community/react-native-maps/issues/828","repository_url":"https://api.github.com/repos/react-community/react-native-maps","labels_url":"https://api.github.com/repos/react-community/react-native-maps/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-native-maps/issues/828/comments","events_url":"https://api.github.com/repos/react-community/react-native-maps/issues/828/events","html_url":"https://github.com/react-community/react-native-maps/issues/828","id":191569670,"number":828,"title":"Running on real device crashes ","user":{"login":"shroukkhan","id":620534,"avatar_url":"https://avatars3.githubusercontent.com/u/620534?v=4","gravatar_id":"","url":"https://api.github.com/users/shroukkhan","html_url":"https://github.com/shroukkhan","followers_url":"https://api.github.com/users/shroukkhan/followers","following_url":"https://api.github.com/users/shroukkhan/following{/other_user}","gists_url":"https://api.github.com/users/shroukkhan/gists{/gist_id}","starred_url":"https://api.github.com/users/shroukkhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shroukkhan/subscriptions","organizations_url":"https://api.github.com/users/shroukkhan/orgs","repos_url":"https://api.github.com/users/shroukkhan/repos","events_url":"https://api.github.com/users/shroukkhan/events{/privacy}","received_events_url":"https://api.github.com/users/shroukkhan/received_events","type":"User","site_admin":false},"labels":[{"id":318657339,"url":"https://api.github.com/repos/react-community/react-native-maps/labels/Android","name":"Android","color":"009800","default":false},{"id":318657324,"url":"https://api.github.com/repos/react-community/react-native-maps/labels/Compatibility","name":"Compatibility","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-24T17:32:34Z","updated_at":"2018-03-14T12:43:47Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\ntrying to run it on  real device crashes with the following error:\r\n\r\n```\r\n11-25 00:11:32.246 11298-11298/? E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                   Process: com.sagamobile, PID: 11298\r\n                                                   java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.Projection com.google.android.gms.maps.GoogleMap.getProjection()' on a null object reference\r\n                                                       at com.airbnb.android.react.maps.AirMapView$11.run(AirMapView.java:611)\r\n                                                       at android.os.Handler.handleCallback(Handler.java:739)\r\n                                                       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                       at android.os.Looper.loop(Looper.java:145)\r\n                                                       at android.app.ActivityThread.main(ActivityThread.java:5951)\r\n                                                       at java.lang.reflect.Method.invoke(Native Method)\r\n                                                       at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)\r\n                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)\r\n```\r\n\r\nHowever, it runs perfectly on emulator.\r\nReact native version : 0.35.0\r\nReact native map npm : 0.11.0\r\nDevice:\r\n   Samsung Galaxy S4 / GT-I9500\r\n   Android 5.0.1\r\n"},"comment":{"url":"https://api.github.com/repos/react-community/react-native-maps/issues/comments/373007483","html_url":"https://github.com/react-community/react-native-maps/issues/828#issuecomment-373007483","issue_url":"https://api.github.com/repos/react-community/react-native-maps/issues/828","id":373007483,"user":{"login":"maluramichael","id":1489383,"avatar_url":"https://avatars2.githubusercontent.com/u/1489383?v=4","gravatar_id":"","url":"https://api.github.com/users/maluramichael","html_url":"https://github.com/maluramichael","followers_url":"https://api.github.com/users/maluramichael/followers","following_url":"https://api.github.com/users/maluramichael/following{/other_user}","gists_url":"https://api.github.com/users/maluramichael/gists{/gist_id}","starred_url":"https://api.github.com/users/maluramichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maluramichael/subscriptions","organizations_url":"https://api.github.com/users/maluramichael/orgs","repos_url":"https://api.github.com/users/maluramichael/repos","events_url":"https://api.github.com/users/maluramichael/events{/privacy}","received_events_url":"https://api.github.com/users/maluramichael/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T12:43:47Z","updated_at":"2018-03-14T12:43:47Z","author_association":"NONE","body":"I got the same problem\r\n\r\n```\r\n\"react\": \"^15.3.1\",\r\n\"react-native\": \"0.38.1\",\r\n\"react-native-maps\": \"^0.9.0\",\r\n```\r\n```\r\nE  java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.Projection com.google.android.gms.maps.GoogleMap.getProjection()' on a null object reference\r\nE      at com.airbnb.android.react.maps.AirMapView$11.run(AirMapView.java:569)\r\nE      at android.os.Handler.handleCallback(Handler.java:789)\r\nE      at android.os.Handler.dispatchMessage(Handler.java:98)\r\nE      at android.os.Looper.loop(Looper.java:164)\r\nE      at android.app.ActivityThread.main(ActivityThread.java:6541)\r\nE      at java.lang.reflect.Method.invoke(Native Method)\r\nE      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\nE      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)\r\n```"}}
{"actor":{"display_login":"maluramichael"}}