diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-10-28 17:16:34 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-10-28 17:16:34 +0400 |
commit | 56696edda65fcbadf986f67bbeceedc199058d42 (patch) | |
tree | fab3dee1bfedd6c360c4904449aad4764abffcd0 /main/contrib | |
parent | ca68b36142c26b1899a9cbf6c3d4239830b05958 (diff) |
Fixed "Bug 1750 - [New Resolver] Crash in the editor".
Diffstat (limited to 'main/contrib')
-rw-r--r-- | main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs b/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs index 98e7d887f8..e5d0eac318 100644 --- a/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs +++ b/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs @@ -1588,7 +1588,8 @@ namespace ICSharpCode.NRefactory.CSharp } cur = u.Statement; usingResult.AddChild (new CSharpTokenNode (Convert (blockStatement.EndLocation), 1), UsingStatement.Roles.RPar); - usingResult.AddChild ((Statement)cur.Accept (this), UsingStatement.Roles.EmbeddedStatement); + if (cur != null) + usingResult.AddChild ((Statement)cur.Accept (this), UsingStatement.Roles.EmbeddedStatement); } return usingResult; } |