Hi Nick,
I need more details.
What version of Jersey are you using?
What is the stack trace?
What JVM implementation are you using on the Android platform?
Paul.
On Dec 23, 2009, at 9:42 PM, Николай Панфилов wrote:
> Hello.
>
> I try to use
>
> com.sun.jersey.api.client.Client;
> com.sun.jersey.api.client.WebResource;
>
> on Android and get java.lang.NullPointerException on this simple code:
>
> Client client = Client.create();
> String url = "http://google.com";
> WebResource webResource = client.resource(url);
> if (webResource == null)
> {
> return;
> }
> String s = webResource.get(String.class); //
> java.lang.NullPointerException!
> Log.i("Test", s);
> return;
>
> the same works perfectly from PC.
>
> could you please take a look as you get a minute and help me?
>
> thank you,
> Nick