huuanh1987 / facebook-java-api

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

NullPointerException at FacebookJsonRestClient.notifications_send #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Call FacebookJsonRestClient.notifications_send method with parameters
that can be success to send at least one user. 

What is the expected output? What do you see instead?
Returns list of user IDs that it successfully sent to.

What version of the product are you using? On what operating system?
Release 2.1.0 on Windows XP

Please provide any additional information below.

On 2.0.5, this function was working for me.

Stack trace for logged exception:
2009-03-11 15:35:03,984 ERROR FacebookJsonRestClient - Exception:
java.lang.Long cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.Long cannot be cast to
java.lang.String
        at com.google.code.facebookapi.FacebookJsonRestClient.extractString
(FacebookJsonRestClient.java:251)
        at com.google.code.facebookapi.ExtensibleClient.notifications_send
(ExtensibleClient.java:1719) 

Stack trace for thrown exception
java.lang.NullPointerException
        at com.google.code.facebookapi.ExtensibleClient.notifications_send
(ExtensibleClient.java:1720) 

Original issue reported on code.google.com by shin.hos...@gmail.com on 12 Mar 2009 at 9:01

GoogleCodeExporter commented 8 years ago
I just checked in something into 2.1.1-SNAPSHOT, is there any way for you to 
check
that out?

Sorry, I don't have time to make a unit test to validate this myself.. (we use 
xml,
and this seems to be due to json return value)

Original comment by fern...@gmail.com on 12 Mar 2009 at 9:34

GoogleCodeExporter commented 8 years ago
Hi fernman,

Thank you for quick fix!

I checked out souce files and built the library.
Then I confirmed that the problem was fixed.

Thanks.

Original comment by shin.hos...@gmail.com on 12 Mar 2009 at 10:35

GoogleCodeExporter commented 8 years ago
thank you!

Original comment by fern...@gmail.com on 13 Mar 2009 at 7:23