mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
6a2cd80550
1 changed files with 5 additions and 2 deletions
|
@ -415,9 +415,12 @@ public class Table {
|
|||
// Check for bad index tables (missing or invalid entries)
|
||||
for (int indexedColumn : indexedColumns) {
|
||||
IndexTable indexTable = secondaryIndexes.get(indexedColumn);
|
||||
Field f = rec.getField(indexedColumn);
|
||||
if (indexTable.isSparseIndex && f.isNull()) {
|
||||
continue; // skip unindexed field
|
||||
}
|
||||
boolean found = false;
|
||||
Field[] keys =
|
||||
indexTable.findPrimaryKeys(rec.getField(indexTable.getColumnIndex()));
|
||||
Field[] keys = indexTable.findPrimaryKeys(f);
|
||||
for (Field key : keys) {
|
||||
if (key.equals(rec.getKeyField())) {
|
||||
found = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue