guys we should probably check if frames isn't null First

This commit is contained in:
swordcube
2024-04-26 06:22:10 -05:00
committed by GitHub
parent d519db011a
commit ea52e25251
+2 -2
View File
@@ -177,7 +177,7 @@ class Paths
public static function getFrames(key:String, assetsPath:Bool = false, ?library:String) {
if (tempFramesCache.exists(key)) {
var frames = tempFramesCache[key];
if (frames.parent != null && frames.parent.bitmap != null && frames.parent.bitmap.readable)
if (frames != null && frames.parent != null && frames.parent.bitmap != null && frames.parent.bitmap.readable)
return frames;
else
tempFramesCache.remove(key);
@@ -325,4 +325,4 @@ class ScriptPathInfo {
this.file = file;
this.library = library;
}
}
}