summaryrefslogtreecommitdiff
path: root/giscanner/maintransformer.py
diff options
context:
space:
mode:
authorPavel Holejsovsky <pholejs@src.gnome.org>2010-12-21 16:21:02 +0100
committerPavel Holejsovsky <pholejs@src.gnome.org>2010-12-21 16:31:10 +0100
commite0d54af03a9de674af11fe7b4b58859e000c777e (patch)
treedd6b6956350775427e98039d99533e0b4dd4236d /giscanner/maintransformer.py
parentb64c1e40f931cd56f4ab7d51c8f4c876ac0013ee (diff)
downloadgobject-introspection-e0d54af03a9de674af11fe7b4b58859e000c777e.tar.gz
scanner: avoid crash when annotation explicitly changes 'self' argument
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r--giscanner/maintransformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 5a9530b3..bafff607 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -908,7 +908,7 @@ method or constructor of some type."""
# A quick hack here...in the future we should catch C signature/GI signature
# mismatches in a general way in finaltransformer
- if first.type.ctype.count('*') != 1:
+ if first.type.ctype is not None and first.type.ctype.count('*') != 1:
return False
# Here we check both the c_symbol_prefix and (if that fails),