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

Calabash: suspect loop?

From: Florent Georges <fgeorges@fgeorges.org>
Date: Tue, 7 Sep 2010 00:34:48 +0100
Message-ID: <AANLkTinOGyw4sU0i5O=T5rMWtxzX6fH0V4UP-eRKWr2A@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  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 Monday, 6 September 2010 23:35:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 September 2010 23:35:41 GMT