Started using Caliburn.Micro v 1.5.2. During development faced once error. The exception stack trace contained very strange line:
essage: Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Exception details:
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Caliburn.Micro.BootstrapperBase.PrepareApplication() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 108
at Caliburn.Micro.BootstrapperBase.StartRuntime() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 95
at Caliburn.Micro.BootstrapperBase.Start() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 49
at Caliburn.Micro.Bootstrapper`1..ctor() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 279
Comments: >> There is no way to have an ArgumentNullReferenceException here Actually, he reports it as a NullReferenceException, which would happen there, if Application were null. Now, at line 94, the last line executed before we call PrepareApplication(), sets Application to Application.Current. Now, I don't know the full details of the internal plumbing, but I'd think the possibility of Application.Current being null during the application startup is not unreasonable.
essage: Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Exception details:
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Caliburn.Micro.BootstrapperBase.PrepareApplication() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 108
at Caliburn.Micro.BootstrapperBase.StartRuntime() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 95
at Caliburn.Micro.BootstrapperBase.Start() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 49
at Caliburn.Micro.Bootstrapper`1..ctor() in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 279
Comments: >> There is no way to have an ArgumentNullReferenceException here Actually, he reports it as a NullReferenceException, which would happen there, if Application were null. Now, at line 94, the last line executed before we call PrepareApplication(), sets Application to Application.Current. Now, I don't know the full details of the internal plumbing, but I'd think the possibility of Application.Current being null during the application startup is not unreasonable.