Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Description:
While retrieving concept properties for an integer field, getPropertyValue always returns 0 instead of null even though the value is not set in the BE engine.
Symptoms:
Zero is returned instead of a null value.
Cause:
This is an expected behavior. (Java related). Numeric datatypes are primitive data types. In Java, values for numeric data types (int, long, double) cannot be null. This why the API catalog function returns "0" when the property value is not set. This will work in cases of string data types, meaning it will report null when the property value is not set.