{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12020","labels_url":"https://api.github.com/repos/golang/go/issues/12020/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12020/comments","events_url":"https://api.github.com/repos/golang/go/issues/12020/events","html_url":"https://github.com/golang/go/issues/12020","id":99074893,"number":12020,"title":"x/mobile: crash in gobind interface call","user":{"login":"Opposition","id":9334433,"avatar_url":"https://avatars.githubusercontent.com/u/9334433?v=3","gravatar_id":"","url":"https://api.github.com/users/Opposition","html_url":"https://github.com/Opposition","followers_url":"https://api.github.com/users/Opposition/followers","following_url":"https://api.github.com/users/Opposition/following{/other_user}","gists_url":"https://api.github.com/users/Opposition/gists{/gist_id}","starred_url":"https://api.github.com/users/Opposition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Opposition/subscriptions","organizations_url":"https://api.github.com/users/Opposition/orgs","repos_url":"https://api.github.com/users/Opposition/repos","events_url":"https://api.github.com/users/Opposition/events{/privacy}","received_events_url":"https://api.github.com/users/Opposition/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":337,"closed_issues":152,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-08-05T16:40:43Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":8,"created_at":"2015-08-04T22:27:12Z","updated_at":"2015-08-05T21:28:43Z","closed_at":null,"body":"<b>What version of Go are you using (go version)?</b>\r\n\r\ngo version go1.5beta2 linux/amd64\r\n\r\ngomobile version +99196c8 Sat Aug 1 23:05:44 2015 +0000 (android); androidSDK=/usr/local/android-sdk-linux/platforms/android-22\r\n\r\n<b>What operating system and processor architecture are you using?</b>\r\n\r\nDevelopment: Linux Mint 64bit / Windows 10 64bit on i7 (920)\r\nPhone: Samsung Galaxy note 4 on ARMv7\r\n\r\n<b>What did you do?</b>\r\n\r\nCreated a simple go library:\r\n\r\n![untitled](https://cloud.githubusercontent.com/assets/9334433/9074271/55043e16-3b08-11e5-9f1e-d71f6bf8c96a.png)\r\n\r\nCompiled a .arr file : gomobile bind {folder path}\r\n\r\nAdded the .arr file to an Android Studio project.\r\n\r\n![untitled2](https://cloud.githubusercontent.com/assets/9334433/9074136/306c2790-3b07-11e5-8a0c-92708ae391ca.png)\r\n<b>*Red box indicates which method call that crashes the application, during runtime.</b>\r\n\r\n<b>What did you expect to see?</b>\r\n\r\nThe instance of the object getting appended correctly to the Go slice, or to show a stack trace / error message.\r\n\r\n<b>What did you see instead?</b>\r\n\r\nPassing null as parameter, shows a null value exception. \r\nHowever, the example above shuts the application down on my phone completely, with no exception or stack trace, even in debug mode.\r\nTry-catch does not help in this situation."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/128155374","html_url":"https://github.com/golang/go/issues/12020#issuecomment-128155374","issue_url":"https://api.github.com/repos/golang/go/issues/12020","id":128155374,"user":{"login":"crawshaw","id":161319,"avatar_url":"https://avatars.githubusercontent.com/u/161319?v=3","gravatar_id":"","url":"https://api.github.com/users/crawshaw","html_url":"https://github.com/crawshaw","followers_url":"https://api.github.com/users/crawshaw/followers","following_url":"https://api.github.com/users/crawshaw/following{/other_user}","gists_url":"https://api.github.com/users/crawshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/crawshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawshaw/subscriptions","organizations_url":"https://api.github.com/users/crawshaw/orgs","repos_url":"https://api.github.com/users/crawshaw/repos","events_url":"https://api.github.com/users/crawshaw/events{/privacy}","received_events_url":"https://api.github.com/users/crawshaw/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T21:28:43Z","updated_at":"2015-08-05T21:28:43Z","body":"Thanks, that is a clear error message from inside gobind. Haven't tracked it down yet."}}