{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/2970","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/2970/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/2970/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/2970/events","html_url":"https://github.com/nextcloud/android/issues/2970","id":357254271,"node_id":"MDU6SXNzdWUzNTcyNTQyNzE=","number":2970,"title":"[3.3.0RC1] NPE at OCFileListFragment.exitSelectionMode ","user":{"login":"AndyScherzinger","id":1315170,"node_id":"MDQ6VXNlcjEzMTUxNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1315170?v=4","gravatar_id":"","url":"https://api.github.com/users/AndyScherzinger","html_url":"https://github.com/AndyScherzinger","followers_url":"https://api.github.com/users/AndyScherzinger/followers","following_url":"https://api.github.com/users/AndyScherzinger/following{/other_user}","gists_url":"https://api.github.com/users/AndyScherzinger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyScherzinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyScherzinger/subscriptions","organizations_url":"https://api.github.com/users/AndyScherzinger/orgs","repos_url":"https://api.github.com/users/AndyScherzinger/repos","events_url":"https://api.github.com/users/AndyScherzinger/events{/privacy}","received_events_url":"https://api.github.com/users/AndyScherzinger/received_events","type":"User","site_admin":false},"labels":[{"id":388626761,"node_id":"MDU6TGFiZWwzODg2MjY3NjE=","url":"https://api.github.com/repos/nextcloud/android/labels/bug","name":"bug","color":"ee0701","default":true},{"id":392415578,"node_id":"MDU6TGFiZWwzOTI0MTU1Nzg=","url":"https://api.github.com/repos/nextcloud/android/labels/high","name":"high","color":"c5def5","default":false},{"id":409096405,"node_id":"MDU6TGFiZWw0MDkwOTY0MDU=","url":"https://api.github.com/repos/nextcloud/android/labels/pr%20exists","name":"pr exists","color":"0052cc","default":false},{"id":399907900,"node_id":"MDU6TGFiZWwzOTk5MDc5MDA=","url":"https://api.github.com/repos/nextcloud/android/labels/release%20candidate","name":"release candidate","color":"ee0701","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/nextcloud/android/milestones/21","html_url":"https://github.com/nextcloud/android/milestone/21","labels_url":"https://api.github.com/repos/nextcloud/android/milestones/21/labels","id":3404881,"node_id":"MDk6TWlsZXN0b25lMzQwNDg4MQ==","number":21,"title":"Nextcloud App 3.3.0","description":"","creator":{"login":"AndyScherzinger","id":1315170,"node_id":"MDQ6VXNlcjEzMTUxNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1315170?v=4","gravatar_id":"","url":"https://api.github.com/users/AndyScherzinger","html_url":"https://github.com/AndyScherzinger","followers_url":"https://api.github.com/users/AndyScherzinger/followers","following_url":"https://api.github.com/users/AndyScherzinger/following{/other_user}","gists_url":"https://api.github.com/users/AndyScherzinger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyScherzinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyScherzinger/subscriptions","organizations_url":"https://api.github.com/users/AndyScherzinger/orgs","repos_url":"https://api.github.com/users/AndyScherzinger/repos","events_url":"https://api.github.com/users/AndyScherzinger/events{/privacy}","received_events_url":"https://api.github.com/users/AndyScherzinger/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":134,"state":"open","created_at":"2018-06-06T12:46:00Z","updated_at":"2018-09-06T16:10:17Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-09-05T14:23:44Z","updated_at":"2018-09-06T16:11:54Z","closed_at":"2018-09-06T16:10:17Z","author_association":"MEMBER","body":"via gplay console:\r\n```\r\njava.lang.NullPointerException: \r\n  at com.owncloud.android.ui.fragment.OCFileListFragment.exitSelectionMode (OCFileListFragment.java:1590)\r\n  at com.owncloud.android.ui.fragment.OCFileListFragment.onFileActionChosen (OCFileListFragment.java:950)\r\n  at com.owncloud.android.ui.fragment.OCFileListFragment.lambda$onOverflowIconClicked$1$OCFileListFragment (OCFileListFragment.java:417)\r\n  at com.owncloud.android.ui.fragment.OCFileListFragment$$Lambda$1.onMenuItemClick (Unknown Source:4\r\n  at android.widget.PopupMenu$1.onMenuItemSelected (PopupMenu.java:105)\r\n  at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:761)\r\n  at com.android.internal.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:172)\r\n  at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:908)\r\n  at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:898)\r\n  at com.android.internal.view.menu.MenuPopup.onItemClick (MenuPopup.java:128)\r\n  at android.widget.AdapterView.performItemClick (AdapterView.java:350)\r\n  at android.widget.AbsListView.performItemClick (AbsListView.java:1683)\r\n  at android.widget.AbsListView$PerformClick.run (AbsListView.java:4094)\r\n  at android.widget.AbsListView$10.run (AbsListView.java:6582)\r\n  at android.os.Handler.handleCallback (Handler.java:789)\r\n  at android.os.Handler.dispatchMessage (Handler.java:98)\r\n  at android.os.Looper.loop (Looper.java:164)\r\n  at android.app.ActivityThread.main (ActivityThread.java:6944)\r\n  at java.lang.reflect.Method.invoke (Native Method)\r\n  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)\r\n  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)\r\n```\r\nand\r\n```\r\njava.lang.RuntimeException: \r\n  at android.app.ActivityThread.deliverResults (ActivityThread.java:4491)\r\n  at android.app.ActivityThread.handleSendResult (ActivityThread.java:4534)\r\n  at android.app.ActivityThread.-wrap20 (Unknown Source)\r\n  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1752)\r\n  at android.os.Handler.dispatchMessage (Handler.java:105)\r\n  at android.os.Looper.loop (Looper.java:164)\r\n  at android.app.ActivityThread.main (ActivityThread.java:6940)\r\n  at java.lang.reflect.Method.invoke (Native Method)\r\n  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)\r\n  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)\r\nCaused by: java.lang.NullPointerException: \r\n  at com.owncloud.android.ui.fragment.OCFileListFragment.exitSelectionMode (OCFileListFragment.java:1590)\r\n  at com.owncloud.android.ui.activity.FileDisplayActivity.exitSelectionMode (FileDisplayActivity.java:998)\r\n  at com.owncloud.android.ui.activity.FileDisplayActivity.onActivityResult (FileDisplayActivity.java:977)\r\n  at android.app.Activity.dispatchActivityResult (Activity.java:7556)\r\n  at android.app.ActivityThread.deliverResults (ActivityThread.java:4487)\r\n```\r\n\r\nThe code is as:\r\n```\r\npublic void exitSelectionMode() {\r\n        mActiveActionMode.finish();\r\n}\r\n```\r\n\r\nSo yes, we could just add a null-check while I still don't know why the variable would be null."},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/419152684","html_url":"https://github.com/nextcloud/android/issues/2970#issuecomment-419152684","issue_url":"https://api.github.com/repos/nextcloud/android/issues/2970","id":419152684,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTE1MjY4NA==","user":{"login":"AndyScherzinger","id":1315170,"node_id":"MDQ6VXNlcjEzMTUxNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1315170?v=4","gravatar_id":"","url":"https://api.github.com/users/AndyScherzinger","html_url":"https://github.com/AndyScherzinger","followers_url":"https://api.github.com/users/AndyScherzinger/followers","following_url":"https://api.github.com/users/AndyScherzinger/following{/other_user}","gists_url":"https://api.github.com/users/AndyScherzinger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyScherzinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyScherzinger/subscriptions","organizations_url":"https://api.github.com/users/AndyScherzinger/orgs","repos_url":"https://api.github.com/users/AndyScherzinger/repos","events_url":"https://api.github.com/users/AndyScherzinger/events{/privacy}","received_events_url":"https://api.github.com/users/AndyScherzinger/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T16:11:54Z","updated_at":"2018-09-06T16:11:54Z","author_association":"MEMBER","body":"@Wikinaut the issue has been fixed by @tobiasKaminsky :heart: Backporting PR is #2976"}}
{"actor":{"display_login":"AndyScherzinger"}}