IDEMPIERE-325 AD_InfoWindow / fix NPE reported by Nicolas

This commit is contained in:
Carlos Ruiz 2013-05-01 10:05:38 -05:00
parent ae957d0cb1
commit a2fcbe2a1b
1 changed files with 1 additions and 2 deletions

View File

@ -295,9 +295,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
private ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos, private ColumnInfo createLookupColumnInfo(TableInfo[] tableInfos,
GridField gridField, MInfoColumn infoColumn) { GridField gridField, MInfoColumn infoColumn) {
String columnName = gridField.getColumnName(); String columnName = gridField.getColumnName();
int AD_Reference_Value_ID = 0;
String validationCode = ""; String validationCode = "";
MLookupInfo lookupInfo = MLookupFactory.getLookupInfo(Env.getCtx(), p_WindowNo, 0, infoColumn.getAD_Reference_ID(), Env.getLanguage(Env.getCtx()), columnName, AD_Reference_Value_ID, false, validationCode); MLookupInfo lookupInfo = MLookupFactory.getLookupInfo(Env.getCtx(), p_WindowNo, 0, infoColumn.getAD_Reference_ID(), Env.getLanguage(Env.getCtx()), columnName, infoColumn.getAD_Reference_Value_ID(), false, validationCode);
String displayColumn = lookupInfo.DisplayColumn; String displayColumn = lookupInfo.DisplayColumn;
int index = infoColumn.getSelectClause().indexOf("."); int index = infoColumn.getSelectClause().indexOf(".");