Skip to content

Commit

Permalink
Fixing task objectRef filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Feb 13, 2018
1 parent be4a5af commit c199011
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -30,6 +30,7 @@

import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.PrismProperty;
import com.evolveum.midpoint.prism.query.FilterUtils;
import com.evolveum.midpoint.prism.query.ObjectQuery;
import com.evolveum.midpoint.prism.query.QueryJaxbConvertor;
import com.evolveum.midpoint.prism.util.CloneUtil;
Expand Down Expand Up @@ -491,7 +492,7 @@ protected QueryType getObjectQueryTypeFromTaskObjectRef(Task task) {
return null;
}
SearchFilterType filterType = objectRef.getFilter();
if (filterType == null) {
if (filterType == null || FilterUtils.isFilterEmpty(filterType)) {
return null;
}
QueryType queryType = new QueryType();
Expand Down

0 comments on commit c199011

Please sign in to comment.