Skip to content

Commit 366f8c0

Browse files
authored
v2.3.5
Fix body hashtable detection. (#28)
1 parent b172eeb commit 366f8c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

module/Public/Invoke-nbApi.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function Invoke-nbApi {
7373
)
7474
$PSCmdlet.ThrowTerminatingError($errorRecord)
7575
}
76-
if ($Body.GetType().FullName -eq [hashtable].FullName)
76+
if ($null -ne $Body -and $Body.GetType().FullName -eq [hashtable].FullName)
7777
{
7878
Write-Verbose -Message "Converting the hashtable body into an object"
7979
$Body = [PSCustomObject]$Body

module/Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.4
1+
2.3.5

module/powerbox.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'powerbox.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.3.4'
15+
ModuleVersion = '2.3.5'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)