irma. - 2007-08-20

Hello,
Could any of you help me on how to send over messages with Emoticons in them?
Currently my client application is using sendText() method to send over plain messages.

I've tried to send a MsnEmoticonMessage object, but I always get an exception in the putEmoticon() method.
The code is something like this:

MsnObject testObj = MsnObject.getInstance(messengerInstance.getOwner().getEmail().getEmailAddress(), filename);
testObj.setType(MsnObject.TYPE_CUSTOM_EMOTICON);

MsnEmoticonMessage emMssg = new MsnEmoticonMessage();
emMssg.putEmoticon(name, testObj);

The generated exception is:
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
...
Caused by: java.lang.NullPointerException
    at net.sf.jml.message.p2p.DisplayPictureDuelManager.<init>(DisplayPictureDuelManager.java:32)
    at net.sf.jml.message.p2p.DisplayPictureDuelManager.<clinit>(DisplayPictureDuelManager.java:13)

I'd be grateful if anyone of you can help :) Thanks in advance :)