Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Fixed a bug in Mini-Language where a NPE could be thrown while using …
Browse files Browse the repository at this point in the history
…Verbose logging: https://issues.apache.org/jira/browse/OFBIZ-5689.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612205 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
adrian-crum committed Jul 21, 2014
1 parent bdeaa73 commit b4798c2
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -155,8 +155,10 @@ public boolean exec(MethodContext methodContext) throws MiniLangException {
}
}
} else {
if (Debug.verboseOn())
Debug.logVerbose("Cannot iterate over a " + objList.getClass().getName() + ", doing nothing: " + this, module);
if (Debug.verboseOn()) {
Debug.logVerbose("Cannot iterate over a " + objList == null ? "null object" : objList.getClass().getName()
+ ", doing nothing: " + this, module);
}
return true;
}
entryFma.put(methodContext.getEnvMap(), oldEntryValue);
Expand Down

0 comments on commit b4798c2

Please sign in to comment.