Debugger: Fix regression in pointer display

'None' is not in a range...

Change-Id: I2df534556ab811dbd285d94ec14021d8597fe226
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-11-27 15:22:55 +01:00
parent e76be1ca7b
commit 8f1fc056e9

View File

@@ -644,7 +644,7 @@ class DumperBase:
self.putNumChild(0) self.putNumChild(0)
return True return True
if format >= 6 and format <= 9: if not format is None and format >= 6 and format <= 9:
# Explicitly requested formatting as array of n items. # Explicitly requested formatting as array of n items.
n = (10, 100, 1000, 10000)[format - 6] n = (10, 100, 1000, 10000)[format - 6]
self.putType(typeName) self.putType(typeName)