Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot index into null array. #3

Open
DalePratz opened this issue Jul 21, 2016 · 1 comment
Open

Cannot index into null array. #3

DalePratz opened this issue Jul 21, 2016 · 1 comment

Comments

@DalePratz
Copy link

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
@brianlala
Copy link
Owner

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

Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants