diff --git a/src/main/java/org/jabref/gui/util/BackgroundTask.java b/src/main/java/org/jabref/gui/util/BackgroundTask.java index a6db2797cf1..7dac72734ea 100644 --- a/src/main/java/org/jabref/gui/util/BackgroundTask.java +++ b/src/main/java/org/jabref/gui/util/BackgroundTask.java @@ -258,7 +258,7 @@ public BackgroundTask withInitialMessage(String message) { } public static Node getIcon(Task task) { - return BackgroundTask.iconMap.getOrDefault(task).getTitle(), null); + return BackgroundTask.iconMap.getOrDefault((task).getTitle(), null); } static class BackgroundProgress {