File tree Expand file tree Collapse file tree
owncloudApp/src/main/java/com/owncloud/android/ui/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Bugfix: Crash from Google Play Console in ReceiveExternalFilesActivity
2+
3+ In order to prevent crashes, a nullability check has been added before
4+ refreshing a not found folder while receiving external files.
5+
6+ https://github.com/owncloud/android/issues/4738
7+ https://github.com/owncloud/android/pull/4878
Original file line number Diff line number Diff line change 1313 * @author Jorge Aguado Recio
1414 *
1515 * Copyright (C) 2012 Bartek Przybylski
16- * Copyright (C) 2025 ownCloud GmbH.
16+ * Copyright (C) 2026 ownCloud GmbH.
1717 * <p>
1818 * This program is free software: you can redistribute it and/or modify
1919 * it under the terms of the GNU General Public License version 2,
@@ -459,7 +459,13 @@ public void onBackPressed() {
459459 } else {
460460 mParents .pop ();
461461 String full_path = generatePath (mParents );
462- startSyncFolderOperation (getStorageManager ().getFileByPath (full_path , currentSpaceId ));
462+ OCFile folder = getStorageManager ().getFileByPath (full_path , currentSpaceId );
463+ if (folder == null ) {
464+ Timber .i ("Folder %s not found, fetching the folder again." , full_path );
465+ super .onBackPressed ();
466+ return ;
467+ }
468+ startSyncFolderOperation (folder );
463469 updateDirectoryList ();
464470 if (mParents .size () <= 1 && !areSpacesAllowed ) {
465471 updateToolbar (getString (R .string .uploader_top_message ));
You can’t perform that action at this time.
0 commit comments