From 1e0d976dc5c4ef49abc75026c0ce29b41c740e70 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Fri, 30 Mar 2012 10:16:04 -0700 Subject: [PATCH] bug 14599: initialize errorString to not null value to ensure valid json response even in case when api server doesn't reset errorString while forming the response. --- api/src/com/cloud/api/response/ExceptionResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/com/cloud/api/response/ExceptionResponse.java b/api/src/com/cloud/api/response/ExceptionResponse.java index 26b6570cca3..277861e4883 100644 --- a/api/src/com/cloud/api/response/ExceptionResponse.java +++ b/api/src/com/cloud/api/response/ExceptionResponse.java @@ -33,7 +33,7 @@ public class ExceptionResponse extends BaseResponse { private Integer csErrorCode; @SerializedName("errortext") @Param(description="the text associated with this error") - private String errorText; + private String errorText = "Command failed due to Internal Server Error"; public Integer getErrorCode() { return errorCode;