Switch order of literals to prevent NullPointerException
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user