- From: Sean Owen <srowen@google.com>
- Date: Fri, 16 Nov 2007 10:14:44 -0500
- To: "Guido García Bernardo" <ggarciab@itdeusto.com>
- Cc: public-mobileok-checker <public-mobileok-checker@w3.org>
I'm sure that's a bug, thank you. I will fix it shortly. The code must handle the case where there is no Content-Type header correctly. Sean On 11/16/07, Guido García Bernardo <ggarciab@itdeusto.com> wrote: > > 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 15:15:00 UTC