Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bufix Get-PnPSiteCollectionAppCatalog throws error for deleted sites #2201

Merged
merged 3 commits into from
Jul 29, 2022

Conversation

milanholemans
Copy link
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #2200

What is in this Pull Request ?

Null reference exception was thrown for some deleted sites. This was because the code below returned null when site properties were fetched.

appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false).Url;

@KoenZomers
Copy link
Collaborator

Thanks @milanholemans !

@KoenZomers KoenZomers merged commit d08bb28 into pnp:dev Jul 29, 2022
@milanholemans milanholemans deleted the bug-getsitecolappcatalog branch July 29, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Get-PnPSiteCollectionAppCatalog returns 'Object reference not set to an instance of an object'
2 participants