huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Null pointer exception after notifications_sendEmail(). #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
String outString = extractString( callMethod( method, params ) );
if ( outString.trim().length() == 0 ) {
  return Collections.emptySet();
}

These lines cause NullPointerException because outString is null after
performing the parse() method of the FacebookJaxbRestClient.

I see that the result of the parse() method can be null when I receive an
empty string within the Facebook response or when this response doesn't
contain "</" sunvstring.
Don't you know why I receive such a response?

Original issue reported on code.google.com by mazur.ro...@gmail.com on 20 Mar 2009 at 1:19

GoogleCodeExporter commented 8 years ago
Hi,

Please post a simple JUnit test (please refer to the existing JUnit tests for 
plenty
of examples) which demonstrates this error.

Thanks,
Dave

Original comment by david.j....@googlemail.com on 21 Mar 2009 at 8:49

GoogleCodeExporter commented 8 years ago
Closing due to inactivity.

Original comment by david.j....@googlemail.com on 3 Apr 2009 at 3:20