Fixed bug in getColors

This commit is contained in:
deiflaender 2022-03-24 16:46:04 +01:00
parent e6376b4865
commit 980b01e8d8

View File

@ -366,7 +366,7 @@ public class RedactionLogMergeService {
private float[] getColor(List<Type> types, String type) { private float[] getColor(List<Type> types, String type) {
Optional<Type> foundType = types.stream().filter(t -> t.equals(type)).findFirst(); Optional<Type> foundType = types.stream().filter(t -> t.getType().equals(type)).findFirst();
if (foundType.isPresent()){ if (foundType.isPresent()){
return convertColor(foundType.get().getHexColor()); return convertColor(foundType.get().getHexColor());
} }
@ -375,7 +375,7 @@ public class RedactionLogMergeService {
boolean isHint(List<Type> types, String type){ boolean isHint(List<Type> types, String type){
Optional<Type> foundType = types.stream().filter(t -> t.equals(type)).findFirst(); Optional<Type> foundType = types.stream().filter(t -> t.getType().equals(type)).findFirst();
if (foundType.isPresent()){ if (foundType.isPresent()){
return foundType.get().isHint(); return foundType.get().isHint();
} }