1

Closed

Null reference when starting without a log path

description

When running the following
                var requiresUpdate = AppUpdateFactory.Setup(
                       config =>
                           config.Update(new TargetPackage { Name = "MyPackage", UpdateDependencies = true, NuGetFeedUrl = CredentialProvider.Feed })
                                 .RelaunchSelfAfterUpdate()
                   ).Execute();
A NullReferenceException is thrown at
   at System.Environment.ExpandEnvironmentVariables(String name)
   at Sidewinder.Core.SmartLocation..ctor(String rawLocation) in c:\Projects\Sidewinder\trunk\Releases\v1.5.2\Source\Sidewinder.Core\SmartLocation.cs:line 30
I think this happens because UpdateConfig doesn't check for null LogPath before it creates a SmartLocation.
Closed Mar 7, 2014 at 12:42 AM by jimbobdog
Fixed in v1.5.3 release (just pushed to NuGet)

comments

jimbobdog wrote Mar 6, 2014 at 10:56 PM

Hi, can you attach/send the full stack trace for the error please?

Just looking at it now and this would help

Thanks,
James