Skip to content
Snippets Groups Projects
Commit 8f4bbc83 authored by srosse's avatar srosse
Browse files

OO-2473: check parameters of the method against null (patch S. Clemenz)

parent ba72b219
No related branches found
No related tags found
No related merge requests found
...@@ -339,6 +339,8 @@ public class CheckboxManagerImpl implements CheckboxManager { ...@@ -339,6 +339,8 @@ public class CheckboxManagerImpl implements CheckboxManager {
} }
protected DBCheck loadCheck(DBCheckbox checkbox, Identity identity) { protected DBCheck loadCheck(DBCheckbox checkbox, Identity identity) {
if(checkbox == null || identity == null) return null;
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("select check from clcheck as check") sb.append("select check from clcheck as check")
.append(" where check.identity.key=:identityKey and check.checkbox.key=:checkboxKey"); .append(" where check.identity.key=:identityKey and check.checkbox.key=:checkboxKey");
......
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