From e2edebd4067556b4d50d04ec8ba173dd1a7048f0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 30 Dec 2014 09:04:41 +0000 Subject: [PATCH] Patch for an Issue #1069 --- plugins/generic/databases.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/generic/databases.py b/plugins/generic/databases.py index 7d5151263..7ced5bc41 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -772,6 +772,9 @@ class Databases: return kb.data.cachedColumns def _tableGetCount(self, db, table): + if not db or not table: + return None + if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2): db = db.upper() table = table.upper()