IDEMPIERE-2739 Some exceptions uncaught and hidden in AbstractEventHandler

This commit is contained in:
Carlos Ruiz 2015-07-23 21:00:56 -05:00
parent 74e3447857
commit fad1e4e34b
1 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,10 @@ public abstract class AbstractEventHandler implements EventHandler {
* @param e
*/
protected void addError(Event event, Throwable e) {
addErrorMessage(event, e.getLocalizedMessage());
String msg = e.getLocalizedMessage();
if (msg == null)
msg = e.toString();
addErrorMessage(event, msg);
}
/**