Skip to content

Commit bd336e7

Browse files
committed
fix: Nullable build errors on iOS
1 parent 90cc758 commit bd336e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Uno.UWP/Storage/StorageFile.iOS.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public override async Task<Stream> OpenStreamAsync(CancellationToken ct, FileAcc
8989
public override Task<StorageStreamTransaction> OpenTransactedWriteAsync(CancellationToken ct, StorageOpenOptions option) => throw new NotImplementedException();
9090

9191
protected override bool IsEqual(ImplementationBase implementation) =>
92-
implementation is SecurityScopedFile file && file._nsUrl.FilePathUrl.Path == _nsUrl.FilePathUrl.Path;
92+
implementation is SecurityScopedFile file &&
93+
file._nsUrl.FilePathUrl?.Path == _nsUrl.FilePathUrl?.Path;
9394
}
9495
}
9596
}

src/Uno.UWP/Storage/StorageFolder.iOS.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ public override Task<IReadOnlyList<IStorageItem>> GetItemsAsync(CancellationToke
299299
}
300300

301301
protected override bool IsEqual(ImplementationBase implementation) =>
302-
implementation is SecurityScopedFolder otherFolder && otherFolder._nsUrl.FilePathUrl.Path == _nsUrl.FilePathUrl.Path;
302+
implementation is SecurityScopedFolder otherFolder &&
303+
otherFolder._nsUrl.FilePathUrl?.Path == _nsUrl.FilePathUrl?.Path;
303304
}
304305
}
305306
}

0 commit comments

Comments
 (0)