Cause
This error occurs if you attempt to get (that is, retrieve) a message from a message queue or put (that is, send) a message to a message queue and the msg parameter is null.
In the following example, an attempt is made to retrieve a message using the getMessage method of the
// msg := myQueue.createMessage(true); myQueue.getMessage(msg, null);
Action
Correct your code.