Skip to content

Commit 75d0dd6

Browse files
committed
added some null checks
1 parent 486cf3c commit 75d0dd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ public static void GetAssetListWithCount(int assetCount, Action<LootLockerAssetR
828828
}
829829
LootLockerAPIManager.GetAssetsOriginal((response) =>
830830
{
831-
if (response != null && response.assets.Length > 0)
831+
if (response != null&& response.assets != null && response.assets.Length > 0)
832832
LootLockerAssetRequest.lastId = response.assets.Last()?.id != null ? response.assets.Last().id : 0;
833833

834834
onComplete?.Invoke(response);
@@ -851,7 +851,7 @@ public static void GetAssetNextList(int assetCount, Action<LootLockerAssetRespon
851851

852852
LootLockerAPIManager.GetAssetsOriginal((response) =>
853853
{
854-
if (response != null && response.assets.Length > 0)
854+
if (response != null && response.assets != null && response.assets.Length > 0)
855855
LootLockerAssetRequest.lastId = response.assets.Last()?.id != null ? response.assets.Last().id : 0;
856856
onComplete?.Invoke(response);
857857
}, assetCount, LootLockerAssetRequest.lastId, filter, includeUGC, assetFilters);

0 commit comments

Comments
 (0)