Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31230c5

Browse files
committed
Minor fix
1 parent 87ad96b commit 31230c5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

plugins/generic/search.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,13 @@ def searchTable(self):
314314
query = agent.limitQuery(index, query)
315315

316316
foundTbl = unArrayizeValue(inject.getValue(query, union=False, error=False))
317-
kb.hintValue = foundTbl
318-
foundTbl = safeSQLIdentificatorNaming(foundTbl, True)
319-
foundTbls[db].append(foundTbl)
317+
if not isNoneValue(foundTbls[db]):
318+
kb.hintValue = foundTbl
319+
foundTbl = safeSQLIdentificatorNaming(foundTbl, True)
320+
foundTbls[db].append(foundTbl)
320321

321322
for db in foundTbls.keys():
322-
if not foundTbls[db]:
323+
if isNoneValue(foundTbls[db]):
323324
del foundTbls[db]
324325

325326
if not foundTbls:

0 commit comments

Comments
 (0)