History | Log In      
Issue Details (XML | Word | Printable)

Key: TFJ-2
Type: Bug
Status: Closed
Resolution: Fixed
Priority: Critical
Assignee: Yusuke Yamamoto
Reporter: Yusuke Yamamoto
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Twitter4J

Twitter#getUserDetail() throws NullPointerException

Created: 18/Jun/07 11:05 AM   Updated: 21/Jun/07 11:45 AM
Component/s: Core
Affects Version/s: 1.0
Fix Version/s: 1.0.1


 Description  « Hide
getUserDetail() method always throws NullPointerException.
There is even no testcase for the method.

The following test method will reproduce the issue:
-------
    public void testGetUserDetail() throws Exception{
        UserWithStatus uws = twitterAPI1.getUserDetail(id1);
        assertEquals(id1, uws.getId());
    }
-------

-----------
java.lang.NullPointerException
at twitter4j.TwitterResponse.ensureRootNodeNameIs(TwitterResponse.java:20)
at twitter4j.User.<init>(User.java:17)
at twitter4j.Status.<init>(Status.java:18)
at twitter4j.UserWithStatus.<init>(UserWithStatus.java:11)
at twitter4j.Twitter.getUserDetail(Twitter.java:311)
at twitter4j.TwitterTestUnit.testGetUserDetail(TwitterTestUnit.java:83)
-----------


 All   Comments   Change History   Subversion Commits      Sort Order:
Yusuke Yamamoto - [21/Jun/07 11:45 AM ]
removed getStatus() method from UserWithStatus class.
introduced
getStatusCreatedAt(),getStatusId(),getStatusText()