//this.actionConvertTweetBoxURLToBitly();
for(int i=0; i < 5; i++) {
List<User> lists = this.tweetManager.getFollowingUser("nishio_dens", i);
- for(User u : lists) {
- System.out.println( u );
+ if( lists != null) {
+ for(User u : lists) {
+ System.out.println( u );
+ }
}
}
// String url = "http://google.com";
List<Long> getFollowingUserIds = null;
List<Long> followingList = this.followingUserIDList.get(screenName);
if( followingList != null && followingList.size() > 0 ) {
- getFollowingUserIds = followingList.subList(page * 100, page * 100 + 99);
+ //データ存在しない
+ if( followingList.size() < page * 100 ) {
+ return null;
+ }
+ int to = page * 100 + 99;
+ if( followingList.size() < to){
+ to = to - (to - followingList.size());
+ }
+ getFollowingUserIds = followingList.subList(page * 100, to);
}
//結果