diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2012-11-26 23:54:50 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2012-11-26 23:54:50 -0800 |
commit | c08ac4ed4a8f149d7cae86eb4b862bbb57a4b905 (patch) | |
tree | e05a4b0b1e9c04e4cdd7ae2361042b4e13e7dcf6 | |
parent | 4e3445dbc1146519a4e90662772f82652cf51a8c (diff) | |
download | cython-c08ac4ed4a8f149d7cae86eb4b862bbb57a4b905.tar.gz |
Fix compiler crash.
-rw-r--r-- | Cython/Compiler/Nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index c4f9f0b29..6ba0e1285 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -828,7 +828,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode): scope = env for item in self.module_path: entry = scope.lookup(item) - if entry.is_cpp_class: + if entry is not None and entry.is_cpp_class: scope = entry.type.scope else: scope = None |