Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed possible null ref.

  • Loading branch information...
commit b411a2a5f6cc9c959bd4920f1d0fc48f05899380 1 parent 7e708a6
@mkrueger mkrueger authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs
View
3  ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs
@@ -1598,7 +1598,8 @@ CatchClause ConvertCatch (Catch ctch)
result.AddChild (new CSharpTokenNode (Convert (location[1]), 1), CatchClause.Roles.RPar);
}
- result.AddChild ((BlockStatement)ctch.Block.Accept (this), CatchClause.Roles.Body);
+ if (ctch.Block != null)
+ result.AddChild ((BlockStatement)ctch.Block.Accept (this), CatchClause.Roles.Body);
return result;
}
Please sign in to comment.
Something went wrong with that request. Please try again.