When using Get-RscType to initialize properties of an object, if multiple nested properties are requested for a nested type, only the first property of the nested property tree is initialized. Subsequent properties return a null reference exception.
Steps to Reproduce
Initialize properties with a single nested property:
Both vsphereVirtualDisks.nodes.FileName and vsphereVirtualDisks.nodes.Fid should be initialized without causing a null reference exception.
Actual Behavior
Only the first property (FileName or Fid) is initialized, and attempting to initialize multiple nested properties results in a null reference exception.
Issue Description
When using
Get-RscType
to initialize properties of an object, if multiple nested properties are requested for a nested type, only the first property of the nested property tree is initialized. Subsequent properties return a null reference exception.Steps to Reproduce
Initialize properties with a single nested property:
Output:
Initialize properties with another single nested property:
Output:
Initialize properties with multiple nested properties:
Output:
Expected Behavior
Both
vsphereVirtualDisks.nodes.FileName
andvsphereVirtualDisks.nodes.Fid
should be initialized without causing a null reference exception.Actual Behavior
Only the first property (
FileName
orFid
) is initialized, and attempting to initialize multiple nested properties results in a null reference exception.