{"action":"created","issue":{"url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/21","labels_url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/21/comments","events_url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/21/events","html_url":"https://github.com/SINTEF-SIT/project_gravity/issues/21","id":94938450,"number":21,"title":"App crashes if it tries to send the logs when it is offline","user":{"login":"tcarlyle","id":1172464,"avatar_url":"https://avatars.githubusercontent.com/u/1172464?v=3","gravatar_id":"","url":"https://api.github.com/users/tcarlyle","html_url":"https://github.com/tcarlyle","followers_url":"https://api.github.com/users/tcarlyle/followers","following_url":"https://api.github.com/users/tcarlyle/following{/other_user}","gists_url":"https://api.github.com/users/tcarlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/tcarlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcarlyle/subscriptions","organizations_url":"https://api.github.com/users/tcarlyle/orgs","repos_url":"https://api.github.com/users/tcarlyle/repos","events_url":"https://api.github.com/users/tcarlyle/events{/privacy}","received_events_url":"https://api.github.com/users/tcarlyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T12:46:38Z","updated_at":"2015-07-15T10:23:24Z","closed_at":null,"body":"App crashes if it tries to send the logs when it is offline. It would be good to have a dialog related to the lack of connectivity so that the user can fix the connectivity and retry."},"comment":{"url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/comments/121568317","html_url":"https://github.com/SINTEF-SIT/project_gravity/issues/21#issuecomment-121568317","issue_url":"https://api.github.com/repos/SINTEF-SIT/project_gravity/issues/21","id":121568317,"user":{"login":"iverasp","id":2326370,"avatar_url":"https://avatars.githubusercontent.com/u/2326370?v=3","gravatar_id":"","url":"https://api.github.com/users/iverasp","html_url":"https://github.com/iverasp","followers_url":"https://api.github.com/users/iverasp/followers","following_url":"https://api.github.com/users/iverasp/following{/other_user}","gists_url":"https://api.github.com/users/iverasp/gists{/gist_id}","starred_url":"https://api.github.com/users/iverasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iverasp/subscriptions","organizations_url":"https://api.github.com/users/iverasp/orgs","repos_url":"https://api.github.com/users/iverasp/repos","events_url":"https://api.github.com/users/iverasp/events{/privacy}","received_events_url":"https://api.github.com/users/iverasp/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T10:23:24Z","updated_at":"2015-07-15T10:23:24Z","body":"I finally made the app crash when connected to eduroam in the gym at SINTEF. It seems to be caused by calling getActivity() after the RecordFragment has detached from the activity (stacktrace: http://pastebin.com/dvrFMWBZ).\r\n\r\nSolved by holding a reference to the activity when the fragment attaches to the activity, see http://stackoverflow.com/a/27678112/5065077"}}