mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-03 04:40:18 -06:00
Prevent attempts to access what may be an empty list. Fixes #1832
This commit is contained in:
1 parent
d87345ef52
commit
d05534ad6c
1 file changed
+1
-1
@@ -474,7 +474,7 @@ class PGChildNodeView(NodeView):
|
||||
# Fetch the type name from the dictionary
|
||||
# if type is not present in the types dictionary then
|
||||
# we will continue and not going to add it.
|
||||
if type_str[0] in types:
|
||||
if len(type_str) and type_str[0] in types:
|
||||
|
||||
# if type is present in the types dictionary, but it's
|
||||
# value is None then it requires special handling.
|
||||
|
||||
Reference in new issue
Block a user