Switch order of literals to prevent NullPointerException

This commit is contained in:
pixeebot[bot]
2024-02-02 00:29:18 +00:00
parent 36c277961f
commit 95471a2fba
16 changed files with 40 additions and 40 deletions

View File

@@ -88,7 +88,7 @@ public class PDFToFile {
if (outputFiles.size() == 1) {
// Return single output file
File outputFile = outputFiles.get(0);
if (outputFormat.equals("txt:Text")) {
if ("txt:Text".equals(outputFormat)) {
outputFormat = "txt";
}
fileName = pdfBaseName + "." + outputFormat;