Object reference not set to an instance error when opening a hierarchy.

This happens if you have included custom properties in hierarchy property “user display property” and one/many of these properties were deleted. Just update this property value and remove any properties that were deleted.