kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 291b71942c6660e7b6e1673cdb7720061c9b1bf0cef84e6daff0ca042e293977 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-03-01 10:12 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-03-03 11:49 +01:00 |
| Parents | 5094ad5a468e |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Metadata.java +2 −2
| @@ -470,12 +470,12 @@ | ||
| 470 | 470 | * convenience utility and should not be considered as an authoritative |
| 471 | 471 | * source of truth for checking reserved CQL keywords. |
| 472 | 472 | * |
| 473 | - * @param id the identifier to check. | |
| 473 | + * @param id the identifier to check; should not be {@code null}. | |
| 474 | 474 | * @return {@code true} if the given identifier is a known reserved |
| 475 | 475 | * CQL keyword, {@code false} otherwise. |
| 476 | 476 | */ |
| 477 | 477 | public static boolean isReservedCqlKeyword(String id) { |
| 478 | - return RESERVED_KEYWORDS.contains(id.toLowerCase()); | |
| 478 | + return id != null && RESERVED_KEYWORDS.contains(id.toLowerCase()); | |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | 481 | /** |