diff options
author | Pavel Holejsovsky <pholejs@src.gnome.org> | 2010-12-21 16:21:02 +0100 |
---|---|---|
committer | Pavel Holejsovsky <pholejs@src.gnome.org> | 2010-12-21 16:31:10 +0100 |
commit | e0d54af03a9de674af11fe7b4b58859e000c777e (patch) | |
tree | dd6b6956350775427e98039d99533e0b4dd4236d /giscanner/maintransformer.py | |
parent | b64c1e40f931cd56f4ab7d51c8f4c876ac0013ee (diff) | |
download | gobject-introspection-e0d54af03a9de674af11fe7b4b58859e000c777e.tar.gz |
scanner: avoid crash when annotation explicitly changes 'self' argument
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 2 |
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), |