guys we should probably check if frames isn't null First
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user