minor - avoid unnecessary NPE.
This commit is contained in:
parent
061840a127
commit
cdbe8888fd
|
@ -686,8 +686,11 @@ public class MLookupFactory
|
||||||
// Do we have columns ?
|
// Do we have columns ?
|
||||||
if (list.size() == 0)
|
if (list.size() == 0)
|
||||||
{
|
{
|
||||||
s_log.log(Level.SEVERE, "No Identifier records found: " + ColumnName);
|
if (s_log.isLoggable(Level.INFO))
|
||||||
return null;
|
{
|
||||||
|
s_log.log(Level.INFO, "No Identifier records found: " + ColumnName);
|
||||||
|
}
|
||||||
|
list.add(new LookupDisplayColumn(KeyColumn, null, false, DisplayType.ID, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuffer realSQL = new StringBuffer("SELECT ");
|
StringBuffer realSQL = new StringBuffer("SELECT ");
|
||||||
|
|
Loading…
Reference in New Issue