getItemValueString and Domino 6.5.5 and 7.0
UPDATE: Reading Per’s comment below made me change the version numbers.
UPDATE2: Fiddled with the version numbers again.
Changing an API is a bad thing, the best way is to deprecate the function and replace it with another one to combine backward compatibility with a bright future.
Per Henrik Lausten (his blog) have noticed that IBM is changing how the getItemValueString between the 6.5.5 and 7.0 release.
In 7.0 6.5.5 6.5.4 and earlier releases the getItemValueString returned
1 | null |
if the field didn’t exist. In 6.5.5 and later (7.0) the method returns an empty string (”"). This will ofcourse generate loads of work for support and developers. Go ahead and read Pers entry about this.
I have been using the Apache Common libraries now and then. Especially the StringUtils in the lang pack. (See javadoc). It has the method IsEmpty which are null safe. Highly recommended. I’m extra satisfied today when IBM changed the API.
