Skip to content

Commit

Permalink
bugfix synch property definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetris committed Jun 18, 2018
1 parent 273caa7 commit f2d5132
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/de/catma/repository/db/UserMarkupCollectionHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;

import javax.sql.DataSource;

Expand Down Expand Up @@ -926,12 +927,11 @@ void updateTagsetDefinitionInUserMarkupCollections(
for (TagInstance ti : relevantTagInstances) {
// get all valid propertyDef IDs
Collection<Integer> relevantUserDefPropertyDefIds =
Collections2.transform(ti.getUserDefinedProperties(),
new Function<Property, Integer>() {
public Integer apply(
Property property) {
return property.getPropertyDefinition().getId();
}});
ti.getUserDefinedProperties()
.stream()
.map(property -> property.getPropertyDefinition().getId())
.filter(id -> id != null) // maybe null because of newly added propertydefinitions
.collect(Collectors.toSet());
relevantUserDefPropertyIdList.addAll(relevantUserDefPropertyDefIds);

byte[] tagInstanceUUIDbin =
Expand Down

0 comments on commit f2d5132

Please sign in to comment.