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

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 UTC