ItemExtensions.AsClrValue returns an invalid/empty item for a property that is returned with is_null='0'.
Closed this issue · 0 comments
kentonvk commented
ItemExtensions.AsClrValue should return null when the data in the item has no value. Specifically, when the value is marked with "is_null='0'".
The most common usage of HasValue is to check if 'prop.Value' will return a real Id/Item. The common usage of 'HasValue' is to check if a value is accessible before using that very value. If the value doesn't exist, yet HasValue returns 'True' it is confusing.
Suggestions:
- Update HasValue to work as a simple check of whether the value is accessible from the current AML.
- create an additional function which is better at handling the use case of checking if the value is actually available within the current AML.