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

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

From: Sean Owen <srowen@google.com>
Date: Fri, 16 Nov 2007 20:00:32 -0500
Message-ID: <e920a71c0711161700p6a8cec1dmba36a01c54238aeb@mail.gmail.com>
To: "Guido García Bernardo" <ggarciab@itdeusto.com>
Cc: public-mobileok-checker <public-mobileok-checker@w3.org>
Should be fixed now in CVS; it was a simple error. Note that
"gmail.com" will almost certainly not pass. The mobile version is
http://mail.google.com/mail/x/ -- sorry to say it does not pass at
this point, as it uses some old tags and attributes. I know the Gmail
guys are rolling out a newer version soon which, I'm told, fixes some
of this.

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 Saturday, 17 November 2007 01:00:56 GMT

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