From 4cf8954d37f5d0274ab93e050fbebade232abd8f 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 49542de481e..39b78895fbd 100644 --- a/api/src/com/cloud/api/response/ExceptionResponse.java +++ b/api/src/com/cloud/api/response/ExceptionResponse.java @@ -25,7 +25,7 @@ public class ExceptionResponse extends BaseResponse { private Integer errorCode; @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;