import java.util.*;
import java.text.*;public class InfoDetail { public String id;
public String type;
public String company_id;
public String oper_id;
public String send_time;
public String title;
public String keyWords;
public String content;
public String time; public InfoDetail() { this.id = getid();
}
}/////////////////////////////////////
InfoDetail ID = new InfoDetail();
ID.id = ss.getByName("id");
ID.type = ss.getByName("type");
ID.company_id = ss.getByName("city");
ID.oper_id = ss.getByName("person");
ID.time = ss.getByName("time");
System.out.println("time:"+ID.time);//有内容
ID.title = ss.getByName("title");
ID.keyWords = ss.getByName("keywords");
ID.content = ss.getByName("content");
hash_info.put("ok",ID);
hash_info.put("count",Integer.toString(count));
InfoDetail tmp = (InfoDetail)hash_info.get("ok");
System.out.println("time:"+tmp.time);//nullpoint error
import java.text.*;public class InfoDetail { public String id;
public String type;
public String company_id;
public String oper_id;
public String send_time;
public String title;
public String keyWords;
public String content;
public String time; public InfoDetail() { this.id = getid();
}
}/////////////////////////////////////
InfoDetail ID = new InfoDetail();
ID.id = ss.getByName("id");
ID.type = ss.getByName("type");
ID.company_id = ss.getByName("city");
ID.oper_id = ss.getByName("person");
ID.time = ss.getByName("time");
System.out.println("time:"+ID.time);//有内容
ID.title = ss.getByName("title");
ID.keyWords = ss.getByName("keywords");
ID.content = ss.getByName("content");
hash_info.put("ok",ID);
hash_info.put("count",Integer.toString(count));
InfoDetail tmp = (InfoDetail)hash_info.get("ok");
System.out.println("time:"+tmp.time);//nullpoint error
奇怪.我自己看看吧.分给你.