public AccountInfo ac(String phone) {
AccountInfo query = dao().fetch(AccountInfo.class, Cnd.where("mobilePhone", "=", phone));
return query;
}
public static void main(String[] args) {
AccountInfoService service = new AccountInfoService();
AccountInfo info = service.ac("123456");
System.out.println(info.getId());
}
怎么我使用以上代码擦村出现的是
Exception in thread "main" java.lang.NullPointerException
at com.forwage.service.AccountInfoService.ac(AccountInfoService.java:29)
at com.forwage.service.AccountInfoService.main(AccountInfoService.java:34)
求解??