Dumper: Fix exception when accessing empty items

This also fixes accessing 'this' when located inside a
different thread.

Task-number: QTCREATORBUG-18466
Change-Id: Ib90cc23c65c033a234d3f7cf9b1ba76abff719e2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2017-07-05 09:30:03 +02:00
committed by hjk
parent 8f57264742
commit 2cacf24b18
+2
View File
@@ -577,6 +577,8 @@ class DumperBase:
#warn("TARGS: %s %s" % (typename, targs))
res = []
for item in targs[::-1]:
if len(item) == 0:
continue
c = ord(item[0])
if c in (45, 46) or (c >= 48 and c < 58): # '-', '.' or digit.
if item.find('.') > -1: