{"action":"created","issue":{"url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/33","repository_url":"https://api.github.com/repos/radarlabs/react-native-radar","labels_url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/33/comments","events_url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/33/events","html_url":"https://github.com/radarlabs/react-native-radar/issues/33","id":346393729,"node_id":"MDU6SXNzdWUzNDYzOTM3Mjk=","number":33,"title":"Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference ","user":{"login":"feargswalsh92","id":19194339,"node_id":"MDQ6VXNlcjE5MTk0MzM5","avatar_url":"https://avatars3.githubusercontent.com/u/19194339?v=4","gravatar_id":"","url":"https://api.github.com/users/feargswalsh92","html_url":"https://github.com/feargswalsh92","followers_url":"https://api.github.com/users/feargswalsh92/followers","following_url":"https://api.github.com/users/feargswalsh92/following{/other_user}","gists_url":"https://api.github.com/users/feargswalsh92/gists{/gist_id}","starred_url":"https://api.github.com/users/feargswalsh92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feargswalsh92/subscriptions","organizations_url":"https://api.github.com/users/feargswalsh92/orgs","repos_url":"https://api.github.com/users/feargswalsh92/repos","events_url":"https://api.github.com/users/feargswalsh92/events{/privacy}","received_events_url":"https://api.github.com/users/feargswalsh92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T23:24:37Z","updated_at":"2018-07-31T23:33:57Z","closed_at":null,"author_association":"NONE","body":"## Platform\r\nAndroid\r\n## Radar version \r\nAndroid : 2.0.4\r\nReact-Native: 1.0.17\r\nFull error message: \r\n\r\n`Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference setPlacesProvider     _RadarSettings.java:162 setPlacesProvider     _Radar.java:110 setPlacesProvider     Radar.java:132 setPlacesProvider     RNRadarModule.java:47 invoke     Method.java invoke     JavaMethodWrapper.java:372 invoke     JavaModuleWrapper.java:160 run     NativeRunnable.java handleCallback     Handler.java:739 dispatchMessage     Handler.java:95 dispatchMessage     MessageQueueThreadHandler.java:29 loop     Looper.java:148 run     MessageQueueThreadImpl.java:192 run     Thread.java:818\r\n`\r\nI've been getting this error on Android for the last couple of days.  As you know we had to downgrade the react-native-radar to make it work. Do we have to downgrade the Android sdk too?"},"comment":{"url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/comments/409401219","html_url":"https://github.com/radarlabs/react-native-radar/issues/33#issuecomment-409401219","issue_url":"https://api.github.com/repos/radarlabs/react-native-radar/issues/33","id":409401219,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQwMTIxOQ==","user":{"login":"coolbrow","id":1281199,"node_id":"MDQ6VXNlcjEyODExOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1281199?v=4","gravatar_id":"","url":"https://api.github.com/users/coolbrow","html_url":"https://github.com/coolbrow","followers_url":"https://api.github.com/users/coolbrow/followers","following_url":"https://api.github.com/users/coolbrow/following{/other_user}","gists_url":"https://api.github.com/users/coolbrow/gists{/gist_id}","starred_url":"https://api.github.com/users/coolbrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolbrow/subscriptions","organizations_url":"https://api.github.com/users/coolbrow/orgs","repos_url":"https://api.github.com/users/coolbrow/repos","events_url":"https://api.github.com/users/coolbrow/events{/privacy}","received_events_url":"https://api.github.com/users/coolbrow/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T23:33:57Z","updated_at":"2018-07-31T23:33:57Z","author_association":"CONTRIBUTOR","body":"Yes, `2.x` versions of `react-native-radar` is only compatible with `2.x` versions of the SDKs\r\n\r\nHowever this error seems to be from not initializing the sdk properly with `Radar.initalize(context, publishable_key)`"}}
{"actor":{"display_login":"coolbrow"}}