diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-07 21:30:54 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-07 21:30:54 +0300 |
commit | 1d354186f1cc6cd504ff598898155cbf9f4603cb (patch) | |
tree | 197b19a5e460738dcb417055b9ef346850ca3f22 /src/com/vaadin/data/util | |
parent | 5813e0e9e5af4f946e5ea9c73d426e95d93b7bc4 (diff) | |
parent | 082985c68ad0b6c7f8c155cce2a5a79070176c09 (diff) | |
download | vaadin-framework-1d354186f1cc6cd504ff598898155cbf9f4603cb.tar.gz vaadin-framework-1d354186f1cc6cd504ff598898155cbf9f4603cb.zip |
Merge commit '082985c68ad0b6c7f8c155cce2a5a79070176c09'
Diffstat (limited to 'src/com/vaadin/data/util')
-rw-r--r-- | src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java b/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java index f9458609c3..b012ce7685 100644 --- a/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java +++ b/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java @@ -47,6 +47,10 @@ public class StatementHelper implements Serializable { if (parameter != null) { parameters.add(parameter); dataTypes.put(parameters.size() - 1, parameter.getClass()); + } else { + throw new IllegalArgumentException( + "You cannot add null parameters using addParamaters(Object). " + + "Use addParameters(Object,Class) instead"); } } |