Has something changed with the wave recently. A robot that I have,
inserts a form button. After that button has been clicked, the robot
deletes that button and adds another. Here is a code snippet:

// Remove start presentation button
ref = event.getBlip().first(ElementType.BUTTON,
Restriction.of(FormElement.NAME, FormAction.StartPresentation));
if (ref.value().asElement().isFormElement())
{
        ref.delete();
}

//add syndication button
FormElement formElement = new FormElement(ElementType.BUTTON,
FormAction.SyndicatePresentation, "Syndicate Presentation");
event.getBlip().append(formElement);

It is bombing out on the ref.delete() call. It wasn't doing this
before. Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to