Java + Lotus Notes Q: RichtTextItem

Hi all,

i got an problem with filling in an document through the web. When i want to include an attachment with this code

while(attachment.indexOf(“\”) != -1)

		{

			tempAttachment = attachment.substring(0,attachment.indexOf("\\"));

			finalAttachment.append(tempAttachment + "\\\\");

			attachment = attachment.substring(attachment.indexOf("\\")+1,attachment.length());

		}

			finalAttachment.append(attachment);

			out.print(finalAttachment);

			

		eo = rti.embedObject(EmbeddedObject.EMBED_ATTACHMENT,"",finalAttachment.toString(),null);

it gives an NullPointerException on the method rti.embedObject.

where tempAttachment and attachment are Strings.

finalAttachment an Strigbuffer

and eo is an EmbeddedObject

Is there anyone who can help me with this problem?

Thanks in Advance,

Roderik Hamers