From 75b4e9b693f30acdbbb9688c6c360af42af6fb99 Mon Sep 17 00:00:00 2001 From: Deficuet Date: Sat, 6 Jan 2024 09:00:46 -0700 Subject: [PATCH] update pptr --- .../kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt index 39f3ee80..1874e79b 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt @@ -91,6 +91,7 @@ internal class PPtrImpl: PPtr { @PublishedApi internal inline fun PPtrImpl.safeGetObjInternal(): T? { + if (isNull) return null val cache = getCache() if (cache != null) return cache return getAssetFile()?.let {