IDEMPIERE-3455:NPE when pack-in to system don't have pack-out language
This commit is contained in:
parent
73abb0fd87
commit
b97d1d670a
|
@ -55,7 +55,7 @@ public class CommonTranslationHandler extends AbstractElementHandler implements
|
||||||
String language = getStringValue(element, "AD_Language");
|
String language = getStringValue(element, "AD_Language");
|
||||||
MLanguage lang = MLanguage.get(ctx.ctx, language);
|
MLanguage lang = MLanguage.get(ctx.ctx, language);
|
||||||
// skip if not system installed language
|
// skip if not system installed language
|
||||||
if (! lang.isSystemLanguage())
|
if (lang == null || ! lang.isSystemLanguage())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (log.isLoggable(Level.INFO)) log.info(elementValue+" "+getStringValue(element, "Name"));
|
if (log.isLoggable(Level.INFO)) log.info(elementValue+" "+getStringValue(element, "Name"));
|
||||||
|
|
Loading…
Reference in New Issue