changeset 114:7c36f3e19934

Initialize the error and warnings maps.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 12 Jun 2013 14:41:06 +0200
parents 816444ca259b
children 02a4eddc7760
files src/main/java/de/intevation/lada/rest/Response.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/Response.java	Wed Jun 12 14:40:13 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/Response.java	Wed Jun 12 14:41:06 2013 +0200
@@ -31,6 +31,8 @@
         this.success = success;
         this.message = Integer.toString(code);
         this.data = data;
+        this.errors = new HashMap<String, String>();
+        this.warnings = new HashMap<String, String>();
     }
 
     public Boolean getSuccess() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)