Skip to content
Snippets Groups Projects
Commit 96b57ee3 authored by jakubs's avatar jakubs
Browse files

LMS-2767 Add nullCheck in PostRegistrationDAO

SVN: 24445
parent 2851cfa5
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,9 @@ public class PostRegistrationDAO extends AbstractGenericEntityDAO<PostRegistrati ...@@ -42,9 +42,9 @@ public class PostRegistrationDAO extends AbstractGenericEntityDAO<PostRegistrati
{ {
PostRegistrationPE p = tryFindByDataSet(dataSet); PostRegistrationPE p = tryFindByDataSet(dataSet);
HibernateTemplate template = getHibernateTemplate();
if (p != null) if (p != null)
{ {
HibernateTemplate template = getHibernateTemplate();
template.delete(p); template.delete(p);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment