Skip to content

Commit

Permalink
Merge branch 'firestore-null-query-value-fix' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasBuchholz committed Dec 3, 2024
2 parents 7907b7e + 135a8ca commit e04d748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public static T Cast<T>(this IDictionary<string, Java.Lang.Object> @this, string
public static Java.Lang.Object ToJavaObject(this object @this)
{
switch(@this) {
case null:
return null;
case string x:
return x;
case int x:
Expand Down
2 changes: 2 additions & 0 deletions src/Firestore/Platforms/iOS/Extensions/NSObjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ private static Type GetGenericListType(Type targetType)
public static NSObject ToNSObject(this object @this)
{
switch(@this) {
case null:
return new NSNull();
case NSObject x:
return x;
case string x:
Expand Down

0 comments on commit e04d748

Please sign in to comment.