Fixed relation search if relationTypeGroup is null
This commit is contained in:
parent
bf2b31b3df
commit
f41fabf443
@ -555,6 +555,9 @@ public class BaseRelationService implements RelationService {
|
||||
|
||||
private ListenableFuture<List<EntityRelation>> findRelations(final EntityId rootId, final EntitySearchDirection direction, RelationTypeGroup relationTypeGroup) {
|
||||
ListenableFuture<List<EntityRelation>> relations;
|
||||
if (relationTypeGroup == null) {
|
||||
relationTypeGroup = RelationTypeGroup.COMMON;
|
||||
}
|
||||
if (direction == EntitySearchDirection.FROM) {
|
||||
relations = findByFromAsync(rootId, relationTypeGroup);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user