{"comment":{"url":"https://api.github.com/repos/Wootric/segment-android-integration-wootric/comments/14368008","html_url":"https://github.com/Wootric/segment-android-integration-wootric/commit/ae43cf1e3a8d7fd9a968d86008b8251dea9f5000#commitcomment-14368008","id":14368008,"user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"position":50,"line":50,"path":"src/main/java/com/segment/analytics/android/integrations/wootric/WootricIntegration.java","commit_id":"ae43cf1e3a8d7fd9a968d86008b8251dea9f5000","created_at":"2015-11-12T21:33:35Z","updated_at":"2015-11-12T21:33:35Z","body":"Because you're initializing the Wootric SDK only when an activity is created, if a user calls `identify`, say in their Application class, the `identify` method will throw a NPE.\r\n\r\nThe solution is to either initialize the Wootric client in the constructor if possible, or stick a queue for calls between then an initializing the Wootric SDK."}}