This project has moved. For the latest updates, please go here.
1
Vote

Cannot Index into a null array

description

Hi,

I downloaded the latest builder but got the following at the end... I entered "November 2014" for the CU:

Cannot index into a null array.
At Y:\SP2013\AutoSPInstaller\AutoSPSourceBuilder\AutoSPSourceBuilder.ps1:518 ch
ar:20
  • if (($spCU.Url[ <<<< 0] -like "*/$($spServicePack.Name)/*") -and ($spSe
    rvicePackBuildNumber -gt $spCUBuildNumber)) # New; only get the CU if its URL d
    oesn't contain the service pack we already have and if the build is older, as i
    t will likely be older
    • CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException

+ FullyQualifiedErrorId : NullArray

comments

CodePlexBMac wrote Jan 15, 2015 at 9:31 PM

I believe I ran into this one myself. In the code, the string "$spCU.Url[0]" needs to be changed to "$spCU[0].Url".