mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:10:46 +00:00
renaming identifiers: handle empty stack (probably never executed branch)
This commit is contained in:
@@ -122,6 +122,7 @@ import java.io.OutputStream;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.EmptyStackException;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
@@ -1735,6 +1736,9 @@ public final class SWF {
|
||||
|
||||
try {
|
||||
ins.translate(localData, stack, output, staticOperation, path);
|
||||
} catch (EmptyStackException ex) {
|
||||
// probably obfucated code, never executed branch
|
||||
break;
|
||||
} catch (InterruptedException ex) {
|
||||
Logger.getLogger(SWF.class.getName()).log(Level.SEVERE, "Error during getting variables", ex);
|
||||
}
|
||||
|
||||
@@ -2911,6 +2911,8 @@ public final class MainFrame extends AppRibbonFrame implements ActionListener, T
|
||||
reload(true);
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, "Error during renaming identifiers", ex);
|
||||
Main.stopWork();
|
||||
View.showMessageDialog(null, translate("error.occured").replace("%error%", ex.getClass().getSimpleName()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user