Re: [HAPI-devel] HAPI 2.1 Using .isEmpty()

2013-09-30 Thread Ian Vowles
I agree that active null is not empty, special action often needs to be taken when it is present. I added the various cases to make sure I knew what was happening. Thanks for looking into it. Ian >>> Christian Ohr 30/09/13 17:41 >>> Yes, isEmpty() has some issues. I think some of them were

Re: [HAPI-devel] HAPI 2.1 Using .isEmpty()

2013-09-30 Thread Christian Ohr
Yes, isEmpty() has some issues. I think some of them were fixed, unfortunately after the 2.1 release; but some corner cases like existing but empty extra components were not considered. I'll look deeper into it as soon as time permits. Would you think, active nulls ("") should be considered an "em

[HAPI-devel] HAPI 2.1 Using .isEmpty()

2013-09-29 Thread Ian Vowles
Checking for nulls, empty strings, empty data types and active nulls makes for a lot of code in message transforms. The presence of .isEmpty() looks like a godsend, but how is it intended to work? The following code produces the results shown below. Is this the way it's supposed to work? T