AttributeCollection's IsEmpty will alway be false
See original GitHub issueDescription
The IsEmpty property in AttributeCollection will always be false, because the _data
is never been null
As the Constructor code says, we will set the _data
field a not null value
And the IsEmpty
property will be false only when the _data
is null
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Does java.util.List.isEmpty() check if the list itself is null?
The method isEmpty() returns true, if an ArrayList object contains no elements; false otherwise (for that the List must first be ...
Read more >How to Check if an Object is Empty in JavaScript – JS Java ...
An object is a collection of related data stored as key-value pairs. ... is empty, it will return true , otherwise, it will...
Read more >AttributeValue of type L does not set IsLSet to true when ...
The problem with this is that the result of GetIsSet will always be false for an empty list (unless that list is an...
Read more >Blank, Coalesce, IsBlank, and IsEmpty functions in Power ...
Any property or calculated value in Power Apps can be blank. For example, a Boolean value normally has one of two values: true...
Read more >Is it better to return NULL or empty values from functions ...
Depends on your team consensus: in the case of mine, we agreed to return null for method that returns a single object indicating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@twsouthwick Thank you. It is not null.
Why it is not null? Because we use the
DocumentFormat.OpenXml.Framework.ReadOnlyArray
to cast the null array to ReadOnlyArray object.That means the ElementMetadata will never receive the null
attributes
argumentDo you have a repro of a null red? The readonly array is a custom type that gracefully handles null. If you have a repro, that would be very helpful.