diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2011-02-11 02:52:25 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2011-02-11 03:00:07 +0300 |
commit | 1d3b0a2ec5fc84bdbadf06576c9e589eb61a73c6 (patch) | |
tree | b280103ac7528d5bd78b6d74abfd30a16ac48470 | |
parent | 0e72683522c10ae07cd13556596c50597f86d3a8 (diff) |
Cecil's ExceptionHandler.HandlerEnd can be null
* 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
-rw-r--r-- | gendarme/rules/Gendarme.Rules.Exceptions/Impl/ExecutionPathFactory.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ExecutionPathFactory.cs b/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ExecutionPathFactory.cs index e037689d..196838e8 100644 --- a/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ExecutionPathFactory.cs +++ b/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ExecutionPathFactory.cs @@ -17,8 +17,6 @@ namespace Gendarme.Rules.Exceptions.Impl { { 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); |