commit | b59eefacf9e015c227bba53db898fa2dc2d3d7a7 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Tue Apr 14 15:55:32 2015 +0200 |
committer | margaretha <margaretha@ids-mannheim.de> | Tue Apr 14 15:55:32 2015 +0200 |
tree | 405c39e44084d3f8a75d463da0febb960406c797 | |
parent | 5c26de40220e5517fd22e29b37b718efaefc06d2 [diff] |
Handled empty relation. Change-Id: I011af24126be19c02a938296bcc9405f793d94c9
diff --git a/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java b/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java index 9748ed3..1f1c799 100644 --- a/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java +++ b/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java
@@ -24,6 +24,11 @@ else return; + if (relationQuery.isEmpty) { + this.isEmpty = true; + return; + } + this.subQuery1 = operand1; this.subQuery2 = operand2; } @@ -31,7 +36,7 @@ @Override public SpanQuery toQuery() throws QueryException { - if (this.isNull()) { + if (this.isNull() || this.isEmpty()) { return null; }