Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

raise exception when column is not passed to get_column. patch by Jun…

… Rao; reviewed by jbellis for #92
  • Loading branch information...
commit 2537c3bcd6b98edb1b665fcfd38f4d99c7182d60 1 parent d8f35bd
Jonathan Ellis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/apache/cassandra/service/CassandraServer.java
View
2  src/org/apache/cassandra/service/CassandraServer.java
@@ -254,7 +254,7 @@ public column_t get_column(String tablename, String key, String columnFamily_col
{
String[] values = RowMutation.getColumnAndColumnFamily(columnFamily_column);
ColumnFamily cfamily = readColumnFamily(new ReadCommand(tablename, key, columnFamily_column, -1, Integer.MAX_VALUE));
- if (cfamily == null)
+ if (cfamily == null || values.length < 2)
{
logger_.info("ERROR ColumnFamily is missing.....: "
+" key:" + key
Please sign in to comment.
Something went wrong with that request. Please try again.