Permalink
Browse files

nullpointer protection

  • Loading branch information...
1 parent 4729acd commit d56c809f04dddd31f24a4cc23a3f0224f2ccb802 @nrelbuilder nrelbuilder committed Oct 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 input/javasrc/com/alvazan/orm/layer9z/spi/db/cassandra/CursorKeysToRows.java
@@ -46,6 +46,8 @@ public CursorKeysToRows(Iterable<byte[]> rowKeys, int batchSize,
}
public void setupMore(Keyspace keyspace, DboTableMeta cf, Info info, Cache cache) {
+ if(cache == null || keyspace == null || cf == null | info == null)
+ throw new IllegalArgumentException("no params can be null but one was null");
this.cf = cf;
this.info = info;
this.cache = cache;

0 comments on commit d56c809

Please sign in to comment.