Skip to content

Commit 15a566d

Browse files
committed
fix(android): prevent error while using SAF paths
1 parent 3c8d22d commit 15a566d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/file-system/file-system-access.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ export class FileSystemAccess29 extends FileSystemAccess {
14681468
} {
14691469
if (isContentUri(path)) {
14701470
const documentFile = getOrSetFolderHelper(path).getOrCreateFile(fileName, create);
1471-
const subPath = documentFile.getUri().toString();
1471+
const subPath = documentFile?.getUri()?.toString();
14721472
return documentFile
14731473
? {
14741474
path: subPath,

0 commit comments

Comments
 (0)