Skip to content

Nullref on prerelease version check #270

Closed

Description

@304NotModified

image

Type (choose one):

  • Bug

NPE version: (e.g. 3.12) master, 6fb8f2638206af4e2a98ffcc71f450ef3636d1b3

Installed from: source

In case of a BUG:

  • What is the current result? Exception
  • What is the expected result? no Excetpion
  • Please post full exception details in case of an Exception (message, stacktrace, inner exceptions)
System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=PackageViewModel
  StackTrace:
   at PackageExplorerViewModel.Rules.PrereleasePackageDependencyRule.IsPrereleaseDependency(PackageDependency pd) in X:\_github\NuGetPackageExplorer\PackageViewModel\PackageAnalyzer\PrereleasePackageDependencyRule.cs:line 38

  • Are there any work arrounds? no
  • Is there a version in which it did worked? I think 3.25
  • Is there a package on Nuget.org which shows the bug?
    See attachment

open package
NugetPackageExplorer.3.25.nupkg.zip

Activity

  1. added this to the milestone on Dec 11, 2017
  2. clairernovotny commented on Dec 11, 2017

    @clairernovotny
    Member

    Should be an easy fix. Didn't realize it could be null. Should be VersionRage.MinVersion?.IsPrerelease == true || VersionRage.MaxVersion?.IsPrerelease == true

  3. added a commit that references this issue on Dec 11, 2017
  4. changed the title [-]Nullref on version check[/-] [+]Nullref on prerelease version check[/+] on Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions