Closed Gilgamoth closed 7 years ago
When I attempt to update and save options I get the following error
Cannot index into a null array. At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:82 char:9 $Optionshash['MaxRebootJobs'] = $MaxRebootJobs_txtbx.Text CategoryInfo : InvalidOperation: (:) [], RuntimeException FullyQualifiedErrorId : NullArray
Cannot index into a null array. At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:82 char:9 $Optionshash['MaxRebootJobs'] = $MaxRebootJobs_txtbx.Text
CategoryInfo : InvalidOperation: (:) [], RuntimeException FullyQualifiedErrorId : NullArray
It has the same error for the following lines also
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:89 char:9 $Optionshash['MaxJobs'] = $MaxJobs_txtBx.Text At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:96 char:9 $Optionshash['ReportPath'] = $ReportPath_txtbx.Text At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:66 char:9 $Global:maxConcurrentJobs = $Optionshash['MaxJobs'] At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:67 char:9 $Global:MaxRebootJobs = $Optionshash['MaxRebootJobs'] At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:68 char:13 If ($Optionshash['ReportPath']) {
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:89 char:9 $Optionshash['MaxJobs'] = $MaxJobs_txtBx.Text
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:96 char:9 $Optionshash['ReportPath'] = $ReportPath_txtbx.Text
At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:66 char:9 $Global:maxConcurrentJobs = $Optionshash['MaxJobs']
At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:67 char:9 $Global:MaxRebootJobs = $Optionshash['MaxRebootJobs']
At C:\ps_scripts\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:68 char:13 If ($Optionshash['ReportPath']) {
Attempting to open the Options menu again brings up the following
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:66 char:5 $MaxRebootJobs_txtbx.Text = $Optionshash['MaxRebootJobs'] At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:67 char:5 $MaxJobs_txtBx.Text = $Optionshash['MaxJobs'] At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:68 char:5 $ReportPath_txtbx.Text = $Optionshash['ReportPath']
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:66 char:5 $MaxRebootJobs_txtbx.Text = $Optionshash['MaxRebootJobs']
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:67 char:5 $MaxJobs_txtBx.Text = $Optionshash['MaxJobs']
At C:\ps_scripts\PoshPAIG_2_1_5\Options.ps1:68 char:5 $ReportPath_txtbx.Text = $Optionshash['ReportPath']
and the options.xml shows as <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> <Nil /> </Objs>
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Nil />
</Objs>
Just pulled the latest 2.1.7 from the repo and this is fixed :(
When I attempt to update and save options I get the following error
It has the same error for the following lines also
Attempting to open the Options menu again brings up the following
and the options.xml shows as
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Nil />
</Objs>