Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

dcathandler.GetPackagesForProductAsync() returning System.NullReference if product is null (fix in description) #15

Description

@MCenters

When we query a package and its product is null but not products property then get packages throws exception.
Following code can be used to fix the issue

if (dcathandler.ProductListing.Product == null)
dcathandler.ProductListing.Product = dcathandler.ProductListing.Products[0];
var g = await dcathandler.GetPackagesForProductAsync();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions