hotfix: fix mapping query error
This commit is contained in:
parent
9f171e515b
commit
7fb84c42e0
@ -76,7 +76,7 @@ public class ComponentMapping implements Queryable {
|
||||
|
||||
// find all elements which fulfill query
|
||||
List<String[]> result = new LinkedList<>();
|
||||
while (data.get(idx)[0].equals(queryParameters.query())) {
|
||||
while (idx < data.size() && data.get(idx)[0].equals(queryParameters.query())) {
|
||||
result.add(data.get(idx));
|
||||
idx++;
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ public class ComponentDroolsExecutionService {
|
||||
private static void addOrUpdate(Set<FileAttribute> fileAttributes, List<FileAttribute> resultingFileAttributes) {
|
||||
|
||||
for (FileAttribute resultingFileAttribute : resultingFileAttributes) {
|
||||
fileAttributes.remove(resultingFileAttribute);
|
||||
fileAttributes.removeIf(fa -> fa.getLabel().equals(resultingFileAttribute.getLabel()));
|
||||
fileAttributes.add(resultingFileAttribute);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user