Hi!
I'm using Java for my Robot.
Up till now i used wavelet.getRootBlip(); to get the Start Blip inside
of the wavelet in the BLIP_SUBMITTED event.
Now out of the blue it doesn't work anymore. I get a nullpointer
exception whenever i try to acces any value of the Rootblip.
in the capabilities.xml i have the following:
<w:capability name="BLIP_SUBMITTED" content="true" context="parent"/>
any clues or tips why?
thanks!
Matthias
PS: Full code:
@Override
public void processEvents(RobotMessageBundle bundle) {
Wavelet wavelet = bundle.getWavelet();
for (Event e: bundle.getEvents()) {
if(e.getType() == EventType.BLIP_SUBMITTED)
{
Blip blip = e.getBlip();
TextView textView = blip.getDocument();
Blip rootBlip = wavelet.getRootBlip();
if(rootBlip == null)
{
textView.append("whoo");
return;
}
try
{
rootBlip.getBlipId();
}
catch(Exception g)
{
textView.append(g.getMessage() + "/" +
g.toString() + "/" + g.getLocalizedMessage());
}
}
}
}
--
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.