Elffuss BraidHub

kikocis/java-driver public

Document that BoundStatement#bind can throw NPE

JAVA-226 #fixes
Changeset3eb7ee21b34515c589018ada3fdfa9f9ae4f0a873307c319d263af5ece247582
AuthorSylvain Lebresne <sylvain@datastax.com> · 2014-01-03 14:31 +01:00
CommitterSylvain Lebresne <sylvain@datastax.com> · 2014-01-03 14:31 +01:00
Parentse40d9dd43fc5

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/BoundStatement.java +3 −0
@@ -119,6 +119,9 @@
119119 * than there is of bound variables in this statement.
120120 * @throws InvalidTypeException if any of the provided value is not of
121121 * correct type to be bound to the corresponding bind variable.
122+ * @throws NullPointerException if one of {@code values} is a collection
123+ * (List, Set or Map) containing a null value. Nulls are not supported in
124+ * collections by CQL.
122125 */
123126 public BoundStatement bind(Object... values) {
124127