Skip to content
Snippets Groups Projects
Commit 20227713 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Handle empty string ("") in observationData VIPSUTV-631

parent 997e8c4a
No related branches found
No related tags found
No related merge requests found
...@@ -444,7 +444,7 @@ public class Observation implements Serializable, no.nibio.vips.observation.Obse ...@@ -444,7 +444,7 @@ public class Observation implements Serializable, no.nibio.vips.observation.Obse
@Column(name = "observation_data") @Column(name = "observation_data")
@Override @Override
public String getObservationData() { public String getObservationData() {
return observationData; return this.observationData != null && this.observationData.replaceAll("\"", "").trim().length() > 0 ? this.observationData : null;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment