mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 18:25:30 +00:00
Fixed NullPointer on reload / uncache
This commit is contained in:
@@ -3253,6 +3253,9 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
public static void uncache(ScriptPack pack) {
|
||||
if (pack != null) {
|
||||
Openable openable = pack.getOpenable();
|
||||
if (openable == null) {
|
||||
return;
|
||||
}
|
||||
SWF swf = (openable instanceof SWF) ? (SWF) openable : ((ABC) openable).getSwf();
|
||||
if (swf != null) {
|
||||
swf.as3Cache.remove(pack);
|
||||
|
||||
Reference in New Issue
Block a user