IDEMPIERE-1985 Provide error message in unsuccessful processes / fix NPE

This commit is contained in:
jan thielemann 2014-07-16 12:33:12 -05:00
parent 562f579eb6
commit 6790fa1570
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public final class ProcessUtil {
msg = engine.eval(rule.getScript()).toString();
//transaction should rollback if there are error in process
if (msg.startsWith("@Error@"))
if (msg != null && msg.startsWith("@Error@"))
success = false;
// Parse Variables

View File

@ -211,7 +211,7 @@ public abstract class SvrProcess implements ProcessCall
}
//transaction should rollback if there are error in process
if(msg.startsWith("@Error@"))
if(msg != null && msg.startsWith("@Error@"))
success = false;
if (success)