IDEMPIERE-1985 Provide error message in unsuccessful processes / fix NPE
This commit is contained in:
parent
562f579eb6
commit
6790fa1570
|
@ -269,7 +269,7 @@ public final class ProcessUtil {
|
||||||
|
|
||||||
msg = engine.eval(rule.getScript()).toString();
|
msg = engine.eval(rule.getScript()).toString();
|
||||||
//transaction should rollback if there are error in process
|
//transaction should rollback if there are error in process
|
||||||
if (msg.startsWith("@Error@"))
|
if (msg != null && msg.startsWith("@Error@"))
|
||||||
success = false;
|
success = false;
|
||||||
|
|
||||||
// Parse Variables
|
// Parse Variables
|
||||||
|
|
|
@ -211,7 +211,7 @@ public abstract class SvrProcess implements ProcessCall
|
||||||
}
|
}
|
||||||
|
|
||||||
//transaction should rollback if there are error in process
|
//transaction should rollback if there are error in process
|
||||||
if(msg.startsWith("@Error@"))
|
if(msg != null && msg.startsWith("@Error@"))
|
||||||
success = false;
|
success = false;
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
|
|
Loading…
Reference in New Issue