- From: Guido García Bernardo <ggarciab@itdeusto.com>
- Date: Fri, 16 Nov 2007 14:09:00 +0100
- 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 UTC