Is Null

Determines whether the value of a business object's attribute is null.

Inputs

Business object
The current business object (a BusObj object).

Attribute
A String that specifies the name of the attribute.

Output

Returns true if the attribute value is null; otherwise, returns false.

Notes

A null indicates no value, in contrast to a zero-length string value, which is detected by calling the Is Blank function block. Test an object with the Is Null function block before using it, because if the object is null, the operation can fail.

An attribute value can be null under these circumstances:

Tip:
Always call Is Null before performing an operation on an attribute that is a child business object or child business object array, because Java does not allow operations on null objects.

Related information

This function block is based on the BusObj.isNull() method. For more information, see isNull().

Copyright IBM Corp. 2004