ErrorHandler errorHandler = ErrorEvent
.findErrorHandler(vaadinSession);
+ if (errorHandler != null) {
+ errorHandler.error(new ErrorEvent(t));
+ }
+
// if this was an UIDL request, send UIDL back to the client
if (ServletPortletHelper.isUIDLRequest(request)) {
SystemMessages ci = getSystemMessages(
"Failed to write critical notification response to the client",
e);
}
- if (errorHandler != null) {
- errorHandler.error(new ErrorEvent(t));
- }
} else {
- if (errorHandler != null) {
- errorHandler.error(new ErrorEvent(t));
- }
-
// Re-throw other exceptions
throw new ServiceException(t);
}
return "for(;;);[" + returnString + "]";
}
- private static String createCriticalNotificationMessage(String message, String details) {
- if(message == null) {
+ private static String createCriticalNotificationMessage(String message,
+ String details) {
+ if (message == null) {
return details;
- } else if(details != null) {
+ } else if (details != null) {
return message + "<br/><br/>" + details;
}
return message;
}
- private static void putValueOrJsonNull(JsonObject json, String key, String value) {
- if(value == null) {
+ private static void putValueOrJsonNull(JsonObject json, String key,
+ String value) {
+ if (value == null) {
json.put(key, Json.createNull());
} else {
json.put(key, value);