AutoSPSourceBuilder icon indicating copy to clipboard operation
AutoSPSourceBuilder copied to clipboard

Cannot index into null array.

Open DalePratz opened this issue 8 years ago • 1 comments

This was during a 2013 build. Have seen it on 2010 and 2016.

Cannot index into a null array. At E:\SharePoint_InstallMedia\AutoSPSourceBuilder\AutoSPSourceBuilder.ps1:532 char:20

  • if (($spCU.Url[ <<<< 0] -like "_`/$($spServicePack.Name)`/_") -and ($spServicePackBuildNumber -gt $spCUBuildNumber)) # New; only get the CU if its URL doesn't contain the service pack we already have and if the build 
    
    is older, as it will likely be older
    • CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

DalePratz avatar Jul 21 '16 21:07 DalePratz

So for some reason it appears that $spCU.Url doesn't contain any members; I just need to figure out why.

Brian

brianlala avatar Aug 21 '16 14:08 brianlala