Skip to content

Commit

Permalink
WFCORE-1206 Exception when trying to send null error
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Dec 11, 2015
1 parent 72bdc97 commit 6c6e3f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class Common {

static void sendError(HttpServerExchange exchange, boolean encode, String msg) {
int errorCode = getErrorResponseCode(msg);
sendError(exchange, encode, new ModelNode(msg), errorCode);
sendError(exchange, encode, new ModelNode(msg == null ? "" : msg), errorCode);
}

static void sendError(HttpServerExchange exchange, boolean encode, ModelNode msg) {
Expand Down

0 comments on commit 6c6e3f9

Please sign in to comment.