public void addEventListener(ClientEventListener cel) {
+ if(listeners==null){
+ //Don't know how it can happen, but it did, and checking for
null isn't going to hurt anything
+ listeners=new Vector<ClientEventListener>();
+ }
if(cel != null)
listeners.addElement(cel);
else
throw new IllegalArgumentException("Adding a null listener!");
}
It can't happen for transient requests. For persistent requests, a
persistence-related bug in the code might well cause it to happen however. :(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20090707/cd1bac0f/attachment.pgp>