-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
BugFix - NPE internalFolderSyncTimestamp & File Existence Check #13612
Conversation
Thank you! This fixed it for me. |
8b43e4f
to
d81ddfd
Compare
app/src/main/java/com/nextcloud/client/jobs/InternalTwoWaySyncWork.kt
Outdated
Show resolved
Hide resolved
d81ddfd
to
26cbf21
Compare
Draft or ready to review? 🙈 |
@tobiasKaminsky We have to test two-way sync properly before merge this PR, so it's a draft. |
26cbf21
to
7c00ab2
Compare
…ullable value Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
51fbb8f
to
f90daae
Compare
Signed-off-by: alperozturk <[email protected]>
Hello, can you publish this fix as quickly as possible in the Fdroid repository via an update? How long will the waiting time be? |
/backport to stable-3.30 |
Is this fix now available on Fdroid? |
Can we expect information updates on the release of this fix to the production app? Currently the fdroid version is 3.30.0 so I guess the fix is not there. Gplay version is 3.29.x so I don't know if it has the issue. I know how these kinds of questions are annoying but the issue is rendering the app pretty difficult to use. |
Changes
During my tests, I wasn’t able to reproduce the issue; however, some users with version 3.30.0 Final have already experienced the crash. It means some OCFile already saved into the internal storage via null value.
Potential fix could be in this PR:
Changing following set function, but I’m not sure.
ocFile.setInternalFolderSyncTimestamp(fileEntity.getInternalTwoWaySync()); ->
ocFile.setInternalFolderSyncTimestamp(nullToZero(fileEntity.getInternalTwoWaySync()));
To prevent further crashes, I checked nullability of the Long object and return non-null object. Alternative solution can be we can convert the Long object to long primitive type.