Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Cecil's ExceptionHandler.HandlerEnd can be null
Browse files Browse the repository at this point in the history
* Impl/ExecutionPathFactory.cs: Do not throw an ArgumentNullException if
'end' is null since Cecil's ExceptionHandler.HandlerEnd can be null when
the method's last instruction is part of the handler. Uncommon IL that
can be generated by CSC
  • Loading branch information
Sebastien Pouliot committed Feb 11, 2011
1 parent 0e72683 commit 1d3b0a2
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -17,8 +17,6 @@ public IList<ExecutionPathCollection> CreatePaths (Instruction start, Instructio
{
if (start == null)
throw new ArgumentNullException ("start");
if (end == null)
throw new ArgumentNullException ("end");

List<ExecutionPathCollection> paths = new List<ExecutionPathCollection> ();
CreatePathHelper (start, end, new ExecutionPathCollection (), paths);
Expand Down

0 comments on commit 1d3b0a2

Please sign in to comment.