diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/exporter/ExporterDialog.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/exporter/ExporterDialog.java index 56626eccaf..e2acc6f3b8 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/exporter/ExporterDialog.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/exporter/ExporterDialog.java @@ -387,7 +387,11 @@ public class ExporterDialog extends DialogComponentProvider implements AddressFa private String appendExporterFileExtension(String filename) { Exporter exporter = getSelectedExporter(); - String extension = "." + exporter.getDefaultFileExtension(); + String extension = exporter.getDefaultFileExtension(); + if (extension.isEmpty()) { + return filename; + } + extension = "." + extension; if (!filename.toLowerCase().endsWith(extension.toLowerCase())) { return filename + extension; }