From: Niels Erik G. Nielsen Date: Thu, 7 May 2015 10:31:26 +0000 (+0200) Subject: Returns "" rather than "null" on missing value X-Git-Tag: v0.0.7~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5211ca6a4525491499ac763373a703e35bdce37f;p=mkjsf-moved-to-github.git Returns "" rather than "null" on missing value .. in SearchCommand.filter expression ('pz:id='). Outcome would be the same ('no targets') unless there was a target with the ID "null" --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/Expression.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/Expression.java index af10e9b..694996f 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/Expression.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/Expression.java @@ -63,6 +63,9 @@ public class Expression implements Serializable { if (parts.length>1) { this.rightEntity = parts[1]; this.label=rightEntity; + } else { + this.rightEntity = ""; + this.label = ""; } }