Java as a Subscriber crash in receive data with IDL Nested #4660
Answered
by
mitza-oci
hendraprawira
asked this question in
Q&A
-
i have an IDL like this :
but after i test with my publisher (java), it come crash in java, i didnt find the error line. the Subscriber Class Listener is
anyone can help me? thanks |
Beta Was this translation helpful? Give feedback.
Answered by
mitza-oci
May 22, 2024
Replies: 1 comment 6 replies
-
Line 68 in 85561d5 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some more specifics here:
struct Message
in IDL turns in topublic class Message
in Java.Message
in IDL contains a member that's aDPT
value. It's not a "pointer to" or a "reference to" a DPT value.Java has no way to represent this data model, so it turns into a pointer which may be null. Since IDL doesn't have a concept of null here, values of Message which contain a null pointer may not be passed into IDL-generated code like this
mdr.take_next_sample(mh, sih);