minor NPE check.

This commit is contained in:
Heng Sin Low 2013-04-22 21:31:23 +08:00
parent 9e2ed40587
commit 90c5d07898
1 changed files with 1 additions and 1 deletions

View File

@ -2174,7 +2174,7 @@ public abstract class PO
if (!save()) {
String msg = null;
ValueNamePair err = CLogger.retrieveError();
String val = Msg.translate(getCtx(), err.getValue());
String val = err != null ? Msg.translate(getCtx(), err.getValue()) : "";
if (err != null)
msg = (val != null ? val + ": " : "") + err.getName();
if (msg == null || msg.length() == 0)