[Opensource] Controller in inconsistent state (I guess !)

Lirian Ostrovica lirian.ostrovica at senecac.on.ca
Sat Feb 1 19:23:07 PST 2003


Hi,

I found myself what the problem is.
The problem stands in the way BeanUtils.decsribe(Object bean) is 
written.
Here is the initial code:

        if (log.isDebugEnabled()) {
            log.debug("Describing bean: " + bean.getClass().getName());
        }
        if (bean == null) {
        //            return (Collections.EMPTY_MAP);
            return (new java.util.HashMap());
        }

So in case debug is enabled and bean == null you get 
NullPointerException.
I saw this fixed in the latest BeanUtils 1.6 so Expresso better uses 
that.

thanks

Lirian



----- Original Message -----
From: "Lirian Ostrovica" <lirian.ostrovica at senecac.on.ca>
Date: Friday, January 31, 2003 11:59 am
Subject: [Opensource] Controller in inconsistent state (I guess !)

> I forgot to say that I'm using Expresso 5.0.2
> 
> 
> 
> 
> 
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
> 




More information about the Opensource mailing list