Search code examples
apache-flexnullintegerblazedsamf

Flex Null Integer


I take data from Java to Flex by AMF (BlazeDS)

In java side object has Integer field. So it can be null.

In Flex side object is int. So null values are deserialized as 0.

This is not what I want, I want to see whether it is 0 or null.

Is there wrapper like (Integer in Java) for Flex? Thanks


Solution

  • As far as I can tell, there is no such wrapper. You can write one that assigns NaN to the internal int if the argument to the constructor is null