Commit f41fabf44300c79994f5f18643076f2686c5ceed
1 parent
bf2b31b3
Fixed relation search if relationTypeGroup is null
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -555,6 +555,9 @@ public class BaseRelationService implements RelationService { | @@ -555,6 +555,9 @@ public class BaseRelationService implements RelationService { | ||
555 | 555 | ||
556 | private ListenableFuture<List<EntityRelation>> findRelations(final EntityId rootId, final EntitySearchDirection direction, RelationTypeGroup relationTypeGroup) { | 556 | private ListenableFuture<List<EntityRelation>> findRelations(final EntityId rootId, final EntitySearchDirection direction, RelationTypeGroup relationTypeGroup) { |
557 | ListenableFuture<List<EntityRelation>> relations; | 557 | ListenableFuture<List<EntityRelation>> relations; |
558 | + if (relationTypeGroup == null) { | ||
559 | + relationTypeGroup = RelationTypeGroup.COMMON; | ||
560 | + } | ||
558 | if (direction == EntitySearchDirection.FROM) { | 561 | if (direction == EntitySearchDirection.FROM) { |
559 | relations = findByFromAsync(rootId, relationTypeGroup); | 562 | relations = findByFromAsync(rootId, relationTypeGroup); |
560 | } else { | 563 | } else { |