diff options
author | Tak <levi@unity3d.com> | 2011-05-31 14:02:25 +0400 |
---|---|---|
committer | Tak <levi@unity3d.com> | 2011-05-31 14:07:50 +0400 |
commit | e6dc01950c5f278ef80ce1d2dbaa7ab176d85257 (patch) | |
tree | 3b61bb2492d0da32e21082441b1ecc3a8a42e0f2 /main/src/addins/CBinding | |
parent | 0ad55b1f8147a9a25af6b7a08d8f85cd184a0ff6 (diff) |
Don't break completion when the file to be parsed doesn't belong to a project.
Diffstat (limited to 'main/src/addins/CBinding')
-rw-r--r-- | main/src/addins/CBinding/Parser/TagDatabaseManager.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/addins/CBinding/Parser/TagDatabaseManager.cs b/main/src/addins/CBinding/Parser/TagDatabaseManager.cs index fc9bb53ef5..e2658afa74 100644 --- a/main/src/addins/CBinding/Parser/TagDatabaseManager.cs +++ b/main/src/addins/CBinding/Parser/TagDatabaseManager.cs @@ -194,10 +194,12 @@ namespace CBinding.Parser fullpath = findFileInPath (filename, project.BaseDirectory); if (string.Empty != fullpath) return fullpath; - // Check project's additional configuration includes - foreach (string p in conf.Includes) { - fullpath = findFileInPath (filename, p); - if (string.Empty != fullpath) return fullpath; + if (conf != null) { + // Check project's additional configuration includes + foreach (string p in conf.Includes) { + fullpath = findFileInPath (filename, p); + if (string.Empty != fullpath) return fullpath; + } } } |