IDEMPIERE-3455:NPE when pack-in to system don't have pack-out language

This commit is contained in:
hieplq 2017-08-13 23:13:38 +07:00
parent 73abb0fd87
commit b97d1d670a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CommonTranslationHandler extends AbstractElementHandler implements
String language = getStringValue(element, "AD_Language");
MLanguage lang = MLanguage.get(ctx.ctx, language);
// skip if not system installed language
if (! lang.isSystemLanguage())
if (lang == null || ! lang.isSystemLanguage())
return;
if (log.isLoggable(Level.INFO)) log.info(elementValue+" "+getStringValue(element, "Name"));