minor - avoid unnecessary NPE.

This commit is contained in:
Heng Sin Low 2012-06-22 16:31:28 +08:00
parent 061840a127
commit cdbe8888fd
1 changed files with 5 additions and 2 deletions

View File

@ -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 ");