Skip to content

fix(synchronize-file): sync with server npe#17314

Merged
tobiasKaminsky merged 1 commit into
masterfrom
fix/sync-with-server-npe
Jul 15, 2026
Merged

fix(synchronize-file): sync with server npe#17314
tobiasKaminsky merged 1 commit into
masterfrom
fix/sync-with-server-npe

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator

Issue

Exception java.lang.NullPointerException:
  at com.owncloud.android.operations.SynchronizeFileOperation.syncWithServer (SynchronizeFileOperation.kt:123)
  at com.owncloud.android.operations.SynchronizeFileOperation.run (SynchronizeFileOperation.kt:109)
  at com.owncloud.android.lib.common.operations.RemoteOperation.execute (RemoteOperation.java:132)
  at com.owncloud.android.lib.common.operations.RemoteOperation.execute (RemoteOperation.java:141)
  at com.owncloud.android.operations.common.SyncOperation.execute (SyncOperation.java:51)
  at com.owncloud.android.ui.helpers.FileOperationsHelper.lambda$openFile$5 (FileOperationsHelper.java:316)
  at com.owncloud.android.ui.helpers.FileOperationsHelper.$r8$lambda$jabfbfrZtwxQHoPvL8OpbirU-7s (FileOperationsHelper.java)
  at com.owncloud.android.ui.helpers.FileOperationsHelper$$ExternalSyntheticLambda9.run (D8$$SyntheticClass)
  at java.lang.Thread.run (Thread.java:1572)

Changes

Fixes NPE
Simplifies execution flow with FetchServerFileResult

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/29091325009/artifacts/8227019331
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@github-actions

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3232
Correctness6666
Dodgy code213213
Experimental11
Malicious code vulnerability22
Multithreaded correctness2929
Performance4141
Security1919
Total403403

@github-actions

Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions

Copy link
Copy Markdown

@tobiasKaminsky tobiasKaminsky merged commit 283ff16 into master Jul 15, 2026
22 of 24 checks passed
@tobiasKaminsky tobiasKaminsky deleted the fix/sync-with-server-npe branch July 15, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants