W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2010

Re: Calabash: suspect loop?

From: mozer <xmlizer@gmail.com>
Date: Tue, 7 Sep 2010 14:47:45 +0200
Message-ID: <AANLkTimBVLQjWo3uVLdndajhwKF+S+KuzFJOXRA2ZoNv@mail.gmail.com>
To: Florent Georges <fgeorges@fgeorges.org>
Cc: XProc Dev <xproc-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 7 September 2010 12:48:21 GMT