Title: Nullpointer with default intent.getExtra methods · Issue #1898 · androidannotations/androidannotations · GitHub
Open Graph Title: Nullpointer with default intent.getExtra methods · Issue #1898 · androidannotations/androidannotations
X Title: Nullpointer with default intent.getExtra methods · Issue #1898 · androidannotations/androidannotations
Description: See code below i have an activity which has a setResult with a byte[] as argument. However when i press the back button on said activity it crashes in the generated class because the intent is null. See code below for the error: Bundle e...
Open Graph Description: See code below i have an activity which has a setResult with a byte[] as argument. However when i press the back button on said activity it crashes in the generated class because the intent is null...
X Description: See code below i have an activity which has a setResult with a byte[] as argument. However when i press the back button on said activity it crashes in the generated class because the intent is null...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/1898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nullpointer with default intent.getExtra methods","articleBody":"See code below i have an activity which has a setResult with a byte[] as argument. However when i press the back button on said activity it crashes in the generated class because the intent is null. See code below for the error:\r\n\r\n` Bundle extras_ = (((data!= null)\u0026\u0026(data.getExtras()!= null))?data.getExtras():new Bundle());\r\n byte[] bitmap = data.getByteArrayExtra(BITMAPRESULTKEY_EXTRA);\r\n ChatFragment_.this.onPictureTaken(resultCode, bitmap);`\r\n\r\nthe extras_ argument isn't used and the data.getByteArrayExtra gives a nullpointer on backpress of the activity.","author":{"url":"https://github.com/rickbijkerk","@type":"Person","name":"rickbijkerk"},"datePublished":"2016-11-16T14:04:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/1898/androidannotations/issues/1898"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:380403e8-792d-f3a8-e336-751e0766352c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A42E:13FDDD:11C79A0:1901298:6A61C149 |
| html-safe-nonce | 8ab78fda00579ec31fe99484503a82920c5c22c0e07c478915a8d6f034cfd463 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDJFOjEzRkRERDoxMUM3OUEwOjE5MDEyOTg6NkE2MUMxNDkiLCJ2aXNpdG9yX2lkIjoiNDg5MTI5MjA3NjI2MzcxOTI0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d83bacbb594241eacddb2a862cd4080d6c141e5fcf0a0494e2054c5c224f4ad3 |
| hovercard-subject-tag | issue:189713217 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/1898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b2f369ce5ff9ee9de7057f8f1b92083fcfeb742e825fbaaa9355bc6d4ae940a/androidannotations/androidannotations/issues/1898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b2f369ce5ff9ee9de7057f8f1b92083fcfeb742e825fbaaa9355bc6d4ae940a/androidannotations/androidannotations/issues/1898 |
| og:image:alt | See code below i have an activity which has a setResult with a byte[] as argument. However when i press the back button on said activity it crashes in the generated class because the intent is null... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rickbijkerk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width