cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1074711 - /cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java
Date Fri, 25 Feb 2011 21:47:25 GMT
Author: eevans
Date: Fri Feb 25 21:47:25 2011
New Revision: 1074711

URL: http://svn.apache.org/viewvc?rev=1074711&view=rev
Log:
raise IRE for null keyspace argument

Patch by eevans; reviewed by jbellis for CASSANDRA-2251

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java?rev=1074711&r1=1074710&r2=1074711&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java Fri Feb 25
21:47:25 2011
@@ -69,6 +69,8 @@ public class ThriftValidation
 
     public static ColumnFamilyType validateColumnFamily(String tablename, String cfName)
throws InvalidRequestException
     {
+        if (tablename == null)
+            throw new InvalidRequestException("no keyspace has been specified");
         if (cfName.isEmpty())
         {
             throw new InvalidRequestException("non-empty columnfamily is required");



Mime
View raw message