include/exclude size NPE fix (recently added)

pull/1/head
Michael Peter Christen 11 years ago
parent 3d4b5e66ce
commit ae55d69ef6

@ -209,13 +209,13 @@ public class QueryGoal {
}
public int getIncludeSize() {
assert this.include_hashes.size() == this.include_words.size();
return this.include_words.size();
assert this.include_hashes == null || this.include_words.size() == 0 || this.include_hashes.size() == this.include_words.size();
return this.include_hashes == null ? this.include_words.size() : this.include_hashes.size();
}
public int getExcludeSize() {
assert this.exclude_hashes.size() == this.exclude_words.size();
return this.exclude_words.size();
assert this.exclude_hashes == null || this.exclude_words.size() == 0 || this.exclude_hashes.size() == this.exclude_words.size();
return this.exclude_hashes == null ? this.exclude_words.size() : this.exclude_hashes.size();
}
/**

Loading…
Cancel
Save