liusj5188 发表于 2014-4-28 14:34:30

请高手帮助解决datagrid出错的问题

t:datagrid已有的查询功能无法满足需求,我另加一按钮,调用后台classify_datagrid(),总是出错,请高人帮忙。
代码:
public void classify_datagrid(UYearScoreEntity uYearScore,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid,String classify) {
                classify = classify==null?"":classify;
                System.out.println("aaaaa="+classify);
                CriteriaQuery cq = new CriteriaQuery(UYearScoreEntity.class, dataGrid);
                //查询条件组装器
                org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, uYearScore, request.getParameterMap());
                try{
                }catch (Exception e) {
                        throw new BusinessException(e.getMessage());
                }
                cq.add();
                this.uYearScoreService.getDataGridReturn(cq, true);
                TagUtil.datagrid(response, dataGrid);
        }
在TagUtil.datagrid(response, dataGrid);这一行出java.lang.NullPointerException错误。
页: [1]
查看完整版本: 请高手帮助解决datagrid出错的问题