Skip to main content
Participant
January 13, 2010
Question

Does CF 4.5 have IsNull(objectRetrievedFromjava) ?

  • January 13, 2010
  • 1 reply
  • 419 views

We have Cold Fusion 4.5. We call a web service to get some data objects via Java Interop. Once the object is recieved, i need to check if an object is null. Does CF 4.5 have IsNull(objectRetrievedFromjava)? Or anyother way to check if object is null?

I tried IsDefined('objectRetrievedFromjava'), but it always says YES, but if i tried to retrieve any details from the object it fails. I know those objects are null, as I am passing them.

    This topic has been closed for replies.

    1 reply

    AdamPresley
    Participating Frequently
    January 13, 2010

    Although I am not certain, I suspect that because CF 4.5 was written on C/C++, CF will marshall the type coming back from Java to match the equivelent C type. I'm wondering if it is converting the NULL to something else. That's always the trick with NULLs. They are handled differently between systems, platforms, and languages. Anyone else out there have anything more specific? I'm sorry I don't have any specific details.

    abibabyAuthor
    Participant
    January 13, 2010

    Thats good enough, to know that it does not support it. I ended up calling Java to tell me if object is null or not.