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

@@ -98,7 +98,7 @@ public class PipelineProcessor {
for (Resource file : outputFiles) {
boolean hasInputFileType = false;
for (String extension : inputFileTypes) {
if (extension.equals("ALL") || file.getFilename().endsWith(extension)) {
if ("ALL".equals(extension) || file.getFilename().endsWith(extension)) {
hasInputFileType = true;
MultiValueMap<String, Object> body = new LinkedMultiValueMap<>();
body.add("fileInput", file);