Skip to content
Snippets Groups Projects
Commit f8d2a071 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

NullPointerException avoided

parent ee5bc1f3
No related branches found
No related tags found
No related merge requests found
......@@ -3286,7 +3286,14 @@ public class FlyScanTangoBox extends AbstractTangoBox {
protected void treatExecutionError(Throwable error) {
String message = TangoExceptionHelper.getErrorMessage(error);
if (message == null) {
message = ObjectUtils.EMPTY_STRING;
}
if (error == null) {
LOGGER.error(message);
} else {
LOGGER.error(message, error);
}
displayErrorMessage(String.format(Utilities.getMessage("flyscan.configuration.read"), configName), message);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment