IDEMPIERE-5901 - Fix NPE for not found autocomplete column message (#2082)
This commit is contained in:
parent
56d12a43cf
commit
cc3ecd11ba
|
@ -669,10 +669,17 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
// => don't run test in case not found auto complete column
|
// => don't run test in case not found auto complete column
|
||||||
if(!Util.isEmpty(autoCompleteSearchColumn))
|
if(!Util.isEmpty(autoCompleteSearchColumn)) {
|
||||||
log.log(Level.SEVERE, String.format("Auto complete search column (%s) not found for field %s (field id %s). ",
|
|
||||||
autoCompleteSearchColumn, m_gridfield.getColumnName(), m_gridfield.getAD_Column_ID()));
|
if (m_gridfield != null) {
|
||||||
else if (identifiers.size() == 0)
|
log.log(Level.SEVERE, String.format("Auto complete search column (%s) not found for field %s (field id %s). ",
|
||||||
|
autoCompleteSearchColumn, m_gridfield.getColumnName(), m_gridfield.getAD_Column_ID()));
|
||||||
|
} else {
|
||||||
|
log.log(Level.SEVERE, String.format("Auto complete search column (%s) not found for Info Window %s. ",
|
||||||
|
autoCompleteSearchColumn, this.infoWindow.getName()));
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if (identifiers.size() == 0)
|
||||||
log.log(Level.SEVERE, String.format("Info window (%s) has no identifier columns", this.infoWindow.getName()));
|
log.log(Level.SEVERE, String.format("Info window (%s) has no identifier columns", this.infoWindow.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue