See below for an explanation of what is going on
I have a really weird issue where the exception caught is null.
The code uses MEF and tries har
You should check if at some point, the IocContainer catches an Exception ex throws ex.InnerException without checking if it is null.
Exception ex
ex.InnerException
C# happily accepts throw null, and ends up in catch (Exception).
throw null
catch (Exception)