ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0

 

 

cusAndComs=this.getEm().createQuery("FROM CusAndCom c WHERE c.hotelCompanyId="+shopId,CusAndCom.class).getResultList();
        return cusAndComs.get(0).getCustomerId();

cusAndComs 没查出数据引起

posted on 2017-01-07 17:16  kebizhanmushi  阅读(210)  评论(0编辑  收藏  举报

导航