Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WSPLGENJob.java @ 8744:1d46e388fe2b
(issue1550) Fix writing parameter -GEL to parameter file.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 21 May 2015 13:46:37 +0200 |
parents | 0e06c6510df2 |
children | 5e38e2924c07 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WSPLGENJob.java Fri May 08 13:02:33 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WSPLGENJob.java Thu May 21 13:46:37 2015 +0200 @@ -377,8 +377,10 @@ protected void writeGel(PrintWriter writer) throws IllegalArgumentException { - if (area != null && area.length() > 0) { - writer.println("-GEL=" + getGel()); + String gel = getGel(); + + if (gel != null && gel.length() > 0) { + writer.println("-GEL=" + gel); } }