From 4d67f876fd7be0aade2143c5d95885970c8df915 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Mon, 29 Jun 2020 09:31:57 -0700 Subject: [PATCH] Check for null values when calling Convert-EnumToString on PSCustomObject (#194) * Add null check to enum conversion * Increment version number * Use AllowNull instead * Fix whitespace * Fix whitespace --- StoreBroker.psd1 | 2 +- StoreBroker/Helpers.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/StoreBroker.psd1 b/StoreBroker.psd1 index fee71892..6e56519a 100644 --- a/StoreBroker.psd1 +++ b/StoreBroker.psd1 @@ -7,7 +7,7 @@ CompanyName = 'Microsoft Corporation' Copyright = 'Copyright (C) Microsoft Corporation. All rights reserved.' - ModuleVersion = '2.1.11' + ModuleVersion = '2.1.12' Description = 'Provides command-line access to the Windows Store Submission REST API.' RootModule = 'StoreBroker/StoreIngestionApi.psm1' diff --git a/StoreBroker/Helpers.ps1 b/StoreBroker/Helpers.ps1 index 35d7a3df..c264fcac 100644 --- a/StoreBroker/Helpers.ps1 +++ b/StoreBroker/Helpers.ps1 @@ -1211,6 +1211,7 @@ function Convert-EnumToString [Parameter( ValueFromPipeline, Mandatory)] + [AllowNull()] $InputObject )