W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > November 2007

NullPointerException running Tester on "http://gmail.com"

From: Guido García Bernardo <ggarciab@itdeusto.com>
Date: Fri, 16 Nov 2007 14:09:00 +0100
Message-ID: <473D966C.40001@itdeusto.com>
To: public-mobileok-checker <public-mobileok-checker@w3.org>

Hi,

That is the message I get when I try to run Tester on "http://gmail.com"

Exception in thread "main" java.lang.NullPointerException at
org.w3c.mwi.mobileok.basic.HTTPImageResource.httpImageResourceConstructionHelper(HTTPImageResource.java:52)
    at
org.w3c.mwi.mobileok.basic.HTTPImageResource.<init>(HTTPImageResource.java:39)
    at
org.w3c.mwi.mobileok.basic.Preprocessor.preprocess(Preprocessor.java:104)
    at
org.w3c.mwi.mobileok.basic.Tester.getPreprocessorResults(Tester.java:79)
    at org.w3c.mwi.mobileok.basic.Tester.main(Tester.java:134)

I'm using the latest code from CVS, and I suspect it is a bug, but I am
not really sure about it.

The HTTPImageResource.java:52 code is:

final String contentType = getResponseHeaders().get("content-type");
// here contentType = null
final int semiIndex = contentType.indexOf((int) ';');
// => NullPointerException

Is there anyone able to reproduce it ?

Thank you very much,
--
Guido García Bernardo
IT Deusto
Received on Friday, 16 November 2007 13:09:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:04 GMT