{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/analytics-android/issues/400","labels_url":"https://api.github.com/repos/segmentio/analytics-android/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/issues/400/comments","events_url":"https://api.github.com/repos/segmentio/analytics-android/issues/400/events","html_url":"https://github.com/segmentio/analytics-android/issues/400","id":121610767,"number":400,"title":"NPE in IntegrationOperation in version 4.0.1","user":{"login":"ygnessin","id":1173700,"avatar_url":"https://avatars.githubusercontent.com/u/1173700?v=3","gravatar_id":"","url":"https://api.github.com/users/ygnessin","html_url":"https://github.com/ygnessin","followers_url":"https://api.github.com/users/ygnessin/followers","following_url":"https://api.github.com/users/ygnessin/following{/other_user}","gists_url":"https://api.github.com/users/ygnessin/gists{/gist_id}","starred_url":"https://api.github.com/users/ygnessin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygnessin/subscriptions","organizations_url":"https://api.github.com/users/ygnessin/orgs","repos_url":"https://api.github.com/users/ygnessin/repos","events_url":"https://api.github.com/users/ygnessin/events{/privacy}","received_events_url":"https://api.github.com/users/ygnessin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T00:45:37Z","updated_at":"2015-12-11T01:12:50Z","closed_at":null,"body":"Hi, I just upgraded to version 4.0.1 with bundled integrations Flurry and Amplitude, both versions 1.0.0. I saw no errors while testing, but after rolling out my app update to production I saw the following crash come through Crashlytics in the wild:\r\n\r\n```\r\nFatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'com.segment.analytics.ValueMap com.segment.analytics.ProjectSettings.trackingPlan()' on a null object reference\r\n       at com.segment.analytics.IntegrationOperation$10.run(IntegrationOperation.java:169)\r\n       at com.segment.analytics.Analytics.performRun(Analytics.java:1025)\r\n       at com.segment.analytics.Analytics$4$1.run(Analytics.java:258)\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:155)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5725)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1030)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:825)\r\n```\r\n\r\nMy target SDK is 23 and my min SDK is 16. I am using ProGuard in my app (not sure if related) but am calling `-keep class com.segment.analytics.** { *; }` as dictated in your docs, as well as `-keep class com.flurry.sdk.* { *; }` for Flurry.\r\n\r\nThe crash has already occurred multiple times for multiple users, spanning various devices and OS versions. I hope you can fix soon, or at least let me know of a temporary workaround ASAP, otherwise I'll have to roll back my update and my segment integration. I would be happy to share any more details that may help you debug if necessary. Thank you very much!"},"comment":{"url":"https://api.github.com/repos/segmentio/analytics-android/issues/comments/163801463","html_url":"https://github.com/segmentio/analytics-android/issues/400#issuecomment-163801463","issue_url":"https://api.github.com/repos/segmentio/analytics-android/issues/400","id":163801463,"user":{"login":"ygnessin","id":1173700,"avatar_url":"https://avatars.githubusercontent.com/u/1173700?v=3","gravatar_id":"","url":"https://api.github.com/users/ygnessin","html_url":"https://github.com/ygnessin","followers_url":"https://api.github.com/users/ygnessin/followers","following_url":"https://api.github.com/users/ygnessin/following{/other_user}","gists_url":"https://api.github.com/users/ygnessin/gists{/gist_id}","starred_url":"https://api.github.com/users/ygnessin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygnessin/subscriptions","organizations_url":"https://api.github.com/users/ygnessin/orgs","repos_url":"https://api.github.com/users/ygnessin/repos","events_url":"https://api.github.com/users/ygnessin/events{/privacy}","received_events_url":"https://api.github.com/users/ygnessin/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T01:12:50Z","updated_at":"2015-12-11T01:12:50Z","body":"This seems somewhat similar to the crashes reported in #395 and fixed in #396, in that the error stems from a null instance of `ProjectSettings`; in this case, when trying to fetch the tracking plan. Hopefully a similar solution can be implemented?"}}