Fixes build issues
This commit is contained in:
@@ -5,6 +5,7 @@ import javax.swing.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import jadx.core.utils.exceptions.JadxException;
|
||||
import jadx.gui.settings.JadxSettings;
|
||||
import jadx.gui.settings.JadxSettingsAdapter;
|
||||
import jadx.gui.ui.MainWindow;
|
||||
@@ -24,8 +25,13 @@ public class JadxGUI {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
MainWindow window = new MainWindow(jadxArgs);
|
||||
window.open();
|
||||
try {
|
||||
MainWindow window = new MainWindow(jadxArgs);
|
||||
window.open();
|
||||
}
|
||||
catch(JadxException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch (Throwable e) {
|
||||
|
||||
@@ -22,7 +22,7 @@ public class JadxWrapper {
|
||||
private final JadxDecompiler decompiler;
|
||||
private File openFile;
|
||||
|
||||
public JadxWrapper(IJadxArgs jadxArgs) {
|
||||
public JadxWrapper(IJadxArgs jadxArgs) throws JadxException {
|
||||
this.decompiler = new JadxDecompiler(jadxArgs);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class JadxWrapper {
|
||||
}
|
||||
progressMonitor.close();
|
||||
LOG.info("done");
|
||||
} catch (InterruptedException e) {
|
||||
} catch (InterruptedException|JadxException e) {
|
||||
LOG.error("Save interrupted", e);
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import jadx.api.ResourceFile;
|
||||
import jadx.core.utils.exceptions.JadxException;
|
||||
import jadx.gui.JadxWrapper;
|
||||
import jadx.gui.jobs.BackgroundWorker;
|
||||
import jadx.gui.jobs.DecompileJob;
|
||||
@@ -100,7 +101,7 @@ public class MainWindow extends JFrame {
|
||||
private transient ProgressPanel progressPane;
|
||||
private transient BackgroundWorker backgroundWorker;
|
||||
|
||||
public MainWindow(JadxSettings settings) {
|
||||
public MainWindow(JadxSettings settings) throws JadxException {
|
||||
this.wrapper = new JadxWrapper(settings);
|
||||
this.settings = settings;
|
||||
this.cacheObject = new CacheObject();
|
||||
|
||||
Reference in New Issue
Block a user