{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/2192","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/2192/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/2192/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/2192/events","html_url":"https://github.com/nextcloud/android/issues/2192","id":297990213,"number":2192,"title":"Null Pointer exception when trying to get user quota on login","user":{"login":"thebaron06","id":6922500,"avatar_url":"https://avatars2.githubusercontent.com/u/6922500?v=4","gravatar_id":"","url":"https://api.github.com/users/thebaron06","html_url":"https://github.com/thebaron06","followers_url":"https://api.github.com/users/thebaron06/followers","following_url":"https://api.github.com/users/thebaron06/following{/other_user}","gists_url":"https://api.github.com/users/thebaron06/gists{/gist_id}","starred_url":"https://api.github.com/users/thebaron06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebaron06/subscriptions","organizations_url":"https://api.github.com/users/thebaron06/orgs","repos_url":"https://api.github.com/users/thebaron06/repos","events_url":"https://api.github.com/users/thebaron06/events{/privacy}","received_events_url":"https://api.github.com/users/thebaron06/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-17T08:45:03Z","updated_at":"2018-02-19T08:31:18Z","closed_at":null,"author_association":"NONE","body":"Description | Version or Model\r\n--- | ---\r\nDevice | LG G3 |\r\nAndroid | LineageOS 14.1, which is basically 7.1.2 (Build 20180122)\r\nServer | 10.0.6 (stable)\r\nApp | 3.0.1 (14.02.2018)\r\n\r\nWhen trying to initially connect the app with the nc server a null pointer is dereferenced when trying to get the user account quota.\r\n\r\nThis issue is related to the [android-library](https://github.com/nextcloud/android-library) project, see logcat dump. If necessary please move this issue to the according project.\r\nThe following commit might be the reason for this: https://github.com/nextcloud/android-library/commit/fbd9392030dfe29353c4a79f504cc9be6554d391\r\n\r\nIssue maybe related to this: https://github.com/nextcloud/android/issues/2133\r\n\r\nI tried to retrieve the account details manually using curl and there is no quota object within the response:\r\n`curl -u <userid>:<userpass> -G 'https://<nc-host>/ocs/v1.php/cloud/user' -d format=json`\r\n```json\r\n{\r\n    \"ocs\": {\r\n        \"data\": {\r\n            \"display-name\": \"<username>\",\r\n            \"email\": \"<usermail>\",\r\n            \"id\": \"<userid>\"\r\n        },\r\n        \"meta\": {\r\n            \"message\": null,\r\n            \"status\": \"ok\",\r\n            \"statuscode\": 100\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nHere is a dump of logcat:\r\n```\r\n02-16 18:11:48.160  8895  6713 D OwnCloudClient #9: Creating OwnCloudClient\r\n02-16 18:11:48.161  8895  6713 D OwnCloudClient #9: REQUEST HEAD /remote.php/webdav/\r\n02-16 18:11:48.380  8895  6713 D ExistenceCheckRemoteOperation: Existence check for https://<nc-host>/remote.php/webdav/ targeting for  existence finished with HTTP status 200\r\n02-16 18:11:48.381  8895  6713 D OwnCloudClient #9: REQUEST GET /ocs/v1.php/cloud/user\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: Exception while getting OC user information\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.owncloud.android.lib.common.Quota.getQuota()' on a null object reference\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat com.owncloud.android.lib.resources.users.GetRemoteUserInfoOperation.run(GetRemoteUserInfoOperation.java:130)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:151)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:155)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat com.owncloud.android.authentication.AuthenticatorAsyncTask.doInBackground(AuthenticatorAsyncTask.java:84)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat com.owncloud.android.authentication.AuthenticatorAsyncTask.doInBackground(AuthenticatorAsyncTask.java:41)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat android.os.AsyncTask$2.call(AsyncTask.java:305)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n02-16 18:11:48.628  8895  6713 E GetRemoteUserInfoOperation: \tat java.lang.Thread.run(Thread.java:761)\r\n```"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/366619128","html_url":"https://github.com/nextcloud/android/issues/2192#issuecomment-366619128","issue_url":"https://api.github.com/repos/nextcloud/android/issues/2192","id":366619128,"user":{"login":"AndyScherzinger","id":1315170,"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-02-19T08:31:18Z","updated_at":"2018-02-19T08:31:18Z","author_association":"MEMBER","body":"cc @tobiasKaminsky @mario "}}
{"actor":{"display_login":"AndyScherzinger"}}