IDEMPIERE-325 AD_InfoWindow / fix NPE reported by Nicolas
This commit is contained in:
parent
ae957d0cb1
commit
a2fcbe2a1b
|
@ -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(".");
|
||||||
|
|
Loading…
Reference in New Issue