Re: Calabash: suspect loop?

I can't see what's suspect here

If log != null

then log.getParent() is ok and log.getLevel() also

if log == null

Then the loop stop

The same if level== null

Hope this helps

Xmlizer
On Tue, Sep 7, 2010 at 1:34 AM, Florent Georges <fgeorges@fgeorges.org>wrote:

>  Hi,
>
>  In Calabash's DeclareStep.java, line 201:
>
>    while (log != null && level == null) {
>        log = log.getParent();
>        level = log.getLevel();
>    }
>
>  I've got an NPE on log.getLevel().  I've integrated Calabash in
> a web application and twisted it a bit, so it is difficult to
> reproduce the problem in a self-contained simple example, but
> because getParent() can return null, this looks suspect to me.
>
>  Hope that helps, regards,
>
> --
> Florent Georges
> http://fgeorges.org/
>
>

Received on Tuesday, 7 September 2010 12:48:20 UTC