If you were logged in you would be able to see more operations.
|
|
|
Twitter4J
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
|
|
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)
-----------
|
Description
|
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)
-----------
|
Show » |
|
introduced
getStatusCreatedAt(),getStatusId(),getStatusText()