for (int i = 0; i < result.size(); i++) {
if (nullKey == false && ((DbKey) result.elementAt(i)).toString().equalsIgnoreCase("&null;")) {
hasNullKey = true;
break;
}
keys.addElement(new Key(result.elementAt(i), getFrequency(result, i)));
}
if (hasNullKey) {
keys.removeAllElements();
result = getIdxKeys(connection, theDb, "TABELLA", searchAlias, startParam, part, totResult + 1, prev_next, mode, minFr, maxFr, null);
for (int i = 0; i < result.size(); i++) {
if (!((DbKey) result.elementAt(i)).toString().equalsIgnoreCase("&null;")) {
keys.addElement(new Key(result.elementAt(i), getFrequency(result, i)));
}
}
}
}