Hi,
I would expect to get null returned or an empty list, but not a nullPointerException,
running this code (table is empty):
public List<L1PrjDimRetDef> getRetDef() { String prj = sessionData.getAttribute("project").toString(); return dataManager.load(L1PrjDimRetDef.class) .query("select e from epos_L1PrjDimRetDef e " + "where e.prj = :p1 " + "and e.active = :p2") .parameter("p1", prj) .parameter("p2", Objects.requireNonNull(EnumYesNo.fromId("Y"))) .list(); }
I cannot see, what I am missing…
Regards
Roland