avoid throwing EmptyStackExceptions in as2 deobfuscation

This commit is contained in:
honfika@gmail.com
2015-08-26 20:50:22 +02:00
parent 5465043ec0
commit 696ee04cb4
104 changed files with 1451 additions and 469 deletions

View File

@@ -96,11 +96,10 @@ public class LoadingPanel extends JPanel {
lastImage = bi;
lastSize = size;
drawTimer = new Timer();
int timeSpin = 1000;
double delay = timeSpin / o;
while (delay < 10) {
double timeSpin = 1000;
double delay;
while ((delay = timeSpin / o) < 10) {
o--;
delay = timeSpin / o;
}
final int segments = o;
int idelay = (int) Math.round(delay);