public static void addTrack(EmailTrackToken tc) {
synchronized(tlist) {
logger.debug("adding tc " + tc.getType());
ArrayList al = (ArrayList)TrackStore.tlist.getLast();
if (al.size() >= TrackStore.nofe) {
ArrayList al1 = new ArrayList(TrackStore.nofe);
TrackStore.tlist.add(al1);
al1.add(tc);
return;
} else {
al.add(tc);
}
};
}
运行时出现:
at java.util.LinkedList.getLast(LinkedList.java:122)
at com.huiyee.email.edit.TrackStore.addTrack(TrackStore.java:64),why?
应该是getLast方法出的错误,怎么改
------解决方案--------------------
代码贴全点吧。