Skip to content

Commit

Permalink
SAM-2701 - Runtime exception still break the autosubmit job in Samigo
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmerino committed Feb 19, 2016
1 parent 7e52fdd commit 565dcae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ public Object doInHibernate(Session session) throws HibernateException, SQLExcep
};
List list = getHibernateTemplate().executeFind(hcb);
log.debug("list.size() = " + list.size());
Long itemTextId = (Long) list.get(0);
Long itemTextId = -1l;
if (!list.isEmpty()) itemTextId = (Long) list.get(0);
log.debug("itemTextId" + itemTextId);
return itemTextId;
}
Expand Down

0 comments on commit 565dcae

Please sign in to comment.