Jayon / weibo4j

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

Source构造方法有可能抛出数组越界异常 #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
public Source(String str) {
        super();
        // TODO Auto-generated constructor stus
        String[] source = str.split("\"",5);

        url = source[1];
            relationShip = source[3];
            name = source[4].replace(">", "").replace("</a", "");

    }
这个构造方法里面 
source在某些情况下有可能数组长度小于5,因此建议在这里添�
��一个逻辑判断,我在调用Timeline获得用户最近发表微博的列�
��的时候运行遇到了数组越界问题

Original issue reported on code.google.com by gaoyong2...@gmail.com on 23 Dec 2011 at 5:48

GoogleCodeExporter commented 9 years ago
参照Issue9 解决
http://code.google.com/p/weibo4j/issues/detail?id=9#c1

Original comment by eddy....@gmail.com on 1 Jan 2012 at 5:23