{"action":"closed","issue":{"url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/164","repository_url":"https://api.github.com/repos/Swrve/swrve-android-sdk","labels_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/164/comments","events_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/164/events","html_url":"https://github.com/Swrve/swrve-android-sdk/issues/164","id":149186706,"number":164,"title":"Swrve crash on Android N (NPC91K) Nexus 6 Swrve version: 4.2.0","user":{"login":"aradomski","id":136780,"avatar_url":"https://avatars.githubusercontent.com/u/136780?v=3","gravatar_id":"","url":"https://api.github.com/users/aradomski","html_url":"https://github.com/aradomski","followers_url":"https://api.github.com/users/aradomski/followers","following_url":"https://api.github.com/users/aradomski/following{/other_user}","gists_url":"https://api.github.com/users/aradomski/gists{/gist_id}","starred_url":"https://api.github.com/users/aradomski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aradomski/subscriptions","organizations_url":"https://api.github.com/users/aradomski/orgs","repos_url":"https://api.github.com/users/aradomski/repos","events_url":"https://api.github.com/users/aradomski/events{/privacy}","received_events_url":"https://api.github.com/users/aradomski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-18T15:33:37Z","updated_at":"2016-04-19T07:47:43Z","closed_at":"2016-04-19T07:47:43Z","body":"**Crash log:**\r\n\r\n> Unable to insert into local storage\r\n>                                                                           java.lang.NullPointerException: Attempt to invoke virtual method 'void com.swrve.sdk.localstorage.MemoryCachedLocalStorage.addEvent(java.lang.String)' on a null object reference\r\n>                                                                               at com.swrve.sdk.SwrveImp$QueueEventRunnable.run(SwrveImp.java:1388)\r\n>                                                                               at com.swrve.sdk.SwrveRunnables$1.run(SwrveRunnables.java:18)\r\n>                                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n>                                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n>                                                                               at java.lang.Thread.run(Thread.java:803)\r\n\r\n\r\n\r\n\r\n**Execution code:**\r\n\r\n>  SwrveConfig config = new SwrveConfig();\r\n>        config.setSelectedStack(SwrveStack.EU);\r\n>         config.setAndroidIdLoggingEnabled(BuildConfig.DEBUG);\r\n>         config.setHideToolbar(false);\r\n>         config.setDefaultBackgroundColor(messageBackgroundColor);\r\n>         config.setSenderId(gcmSenderId);\r\n>         swrve = (Swrve) SwrveSDK.createInstance(appController, swrveAppId, swrveApiKey, config);\r\n>         SwrveSDK.userUpdate(swrveHashMap); //swrveHashMap contains 1 element\r\n>         SwrveSDK.event(\"\");\r\n\r\n\r\n\r\nWorks fine on any device with Android prior to N.\r\n\r\n\r\n"}}