Defect in NetSparkleAppCast.cs throwing Object Reference when trying to assign "latestVersion.AppName = .."

Jan 15, 2014 at 1:23 AM
Receiving an "Object reference not set to an instance of an object" when object, latestVersion is still set to NULL in "NetSparkleAppCast.cs"
Error Severity: Blocker
Environment: Windows 7 (x64)
Version: 1.0.85 (r105790)
Source of Error: NetSparkleAppCast.GetLatestVersion()

  1. Use a simple versioninfo.xml based off of samples
  2. Keep your test app version to
Insert the following if statement
    public NetSparkleAppCastItem GetLatestVersion()

      // ...

      // Added 2014-0114 to make sure we're not getting Object Reference issues
      if (latestVersion != null)
        latestVersion.AppName = _config.ApplicationName;
        latestVersion.AppVersionInstalled = _config.InstalledVersion;
      // go ahead
      return latestVersion;
Jan 15, 2014 at 2:31 AM
sorry i posted this in the wrong spot by accident. please remove this if possible