Skip to content

Commit

Permalink
Merge pull request #5995 from UB-Mannheim/coverity
Browse files Browse the repository at this point in the history
Fix issues reported by Coverity Scan
  • Loading branch information
solth authored Apr 9, 2024
2 parents 8e21c25 + 8fe0ad4 commit f73e4fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private static void addMultipleStructuresWithMetadataGroup(int number, String ty
for (int i = 0; i < number; i++) {
LogicalDivision newStructure = addLogicalDivision(type, workpiece, structure, position,
Collections.emptyList());
if (Objects.isNull(newStructure) || metadataKey.isEmpty() || metadataKey == null) {
if (Objects.isNull(newStructure) || metadataKey == null || metadataKey.isEmpty()) {
continue;
}
MetadataGroup metadataGroup = new MetadataGroup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ private QueryBuilder buildQueryFromCondition(String condition, ObjectType object
}

private String replaceLegacyFilters(String filter) {
filter.replace("processproperty","property");
filter.replace("workpiece","property");
filter.replace("template","property");
filter = filter.replace("processproperty","property");
filter = filter.replace("workpiece","property");
filter = filter.replace("template","property");
return filter;
}

Expand Down

0 comments on commit f73e4fe

Please sign in to comment.