wei-077 / weibosdk

Automatically exported from code.google.com/p/weibosdk
0 stars 0 forks source link

user login failed #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. User login with sdk
2. construct MicroBlogUser
3. construct MicroBlogStatus, but failed

What is the expected output? What do you see instead?
MicroBlogStatus will be constructed successfully.

What version of the product are you using? On what operating system?
flash SDK v2, Win7

Please provide any additional information below.
1. maybe user.status was not a array that the index reference [0] throw a 
exception?

if(user["status"] != null)
{if ( user["status"]["text"] != "")status = new 
MicroBlogStatus(user.status[0]); 
}

2. the status Object seems did not have property of "user", which leads to 
following code failed.(in Constructor of MicroBlogStatus)
this.user = new MicroBlogUser(status["user"]);

Original issue reported on code.google.com by jinquan1...@gmail.com on 9 Jan 2012 at 9:16