diff --git a/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java b/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java index 02f48f66bb0..d6ed38f0d2c 100644 --- a/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java +++ b/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java @@ -367,7 +367,7 @@ private void saveProjectAs() { if (currentDirectory != null) { fileChooser.setCurrentDirectory(currentDirectory.toFile()); } - if (this.project.getFilePaths().size() == 1) { + if (this.project != null && this.project.getFilePaths() != null && this.project.getFilePaths().size() == 1) { // If there is only one file loaded we suggest saving the jadx project file next to the loaded file Path loadedFile = this.project.getFilePaths().get(0); String fileName = loadedFile.getFileName() + "." + JadxProject.PROJECT_EXTENSION;