-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix NPE crash on startup when storage manager is not set #5031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NPE crash on startup when storage manager is not set #5031
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5031 +/- ##
============================================
+ Coverage 17.58% 17.61% +0.03%
Complexity 3 3
============================================
Files 385 385
Lines 32679 32681 +2
Branches 4594 4594
============================================
+ Hits 5745 5757 +12
+ Misses 26008 25993 -15
- Partials 926 931 +5
|
|
@tobiasKaminsky When creating new account, I see that we jump through 5 activities.
The whole flow is pretty complicated and I believe we could simplify it just a bit by removing the authenticator callback in |
| if (newAccount == null) { | ||
| /// no account available: force account creation | ||
| createAccount(true); | ||
| finish(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to run it without it. I managed to create the account properly, but it landed in empty file list activity as a result, requiring extra pull-to-refresh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have somewhere a delay of 500ms to do a very first loading of folder content, maybe it just takes a bit too long for you.
Fixes #4941 Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
2dc858c to
3f3c5a1
Compare
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12049.apk |
Codacy328Lint
SpotBugs (new)
|
it is indeed. |
f690417 Merge pull request #5102 from nextcloud/removeNC12 051423c remove support for NC12 d7d1c47 Merge pull request #5031 from nextcloud/ezaquarii/fix-npe-crash-when-storage-manager-is-not-set 9b79b85 Merge pull request #5065 from nextcloud/ezaquarii/fix-crash-when-making-new-ods-file 32ebe69 Merge pull request #5066 from nextcloud/ezaquarii/fix-shared-by-null-glitch 6e07d18 Merge pull request #5035 from nextcloud/enh/clickableMarkdownLinks 5fce6ca Removed unneeded try/catch a680697 Removed unneeded try/catch 154b9af adjusted to master a15f724 Make hyperlinks clickable in markdown previews 5f70ea6 Make hyperlinks clickable in markdown previews cd0f834 [tx-robot] updated from transifex 22ab16e [tx-robot] updated from transifex 80d7d26 [tx-robot] updated from transifex 6d76582 [tx-robot] updated from transifex 167b250 Merge pull request #5085 from nextcloud/dependabot/gradle/junit-junit-4.13 7b6e1b7 [tx-robot] updated from transifex 1c12ca0 Bump junit from 4.12 to 4.13 71f919f [tx-robot] updated from transifex fc00d7d Merge pull request #5077 from nextcloud/dependabot/gradle/daggerVersion-2.25.4 9a3bf3a Bump daggerVersion from 2.25.3 to 2.25.4 0c3b8fc [tx-robot] updated from transifex ef84976 Fix "Shared by null" glitch in file details view 3cf3e3b Fix crash when adding new ODS file 2047079 Merge pull request #5060 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.3.0 2882236 Bump detekt-gradle-plugin from 1.2.2 to 1.3.0 3687301 [tx-robot] updated from transifex f53d637 [tx-robot] updated from transifex 24921f6 [tx-robot] updated from transifex c30c6c7 daily dev 20191221

Fixes #4941
Signed-off-by: Chris Narkiewicz hello@ezaquarii.com