null check in uncache method, use the original ABC object in recompile test

This commit is contained in:
honfika@gmail.com
2014-11-23 15:20:45 +01:00
parent 767dfd8278
commit 8267b11442
3 changed files with 7 additions and 4 deletions

View File

@@ -2145,11 +2145,15 @@ public final class SWF implements SWFContainerItem, Timelined {
}
public static void uncache(ASMSource src) {
src.getSwf().as2Cache.remove(src);
if (src != null) {
src.getSwf().as2Cache.remove(src);
}
}
public static void uncache(ScriptPack pack) {
pack.getSwf().as3Cache.remove(pack);
if (pack != null) {
pack.getSwf().as3Cache.remove(pack);
}
}
public static boolean isCached(ASMSource src) {