Skip to content

Commit 07f4960

Browse files
author
Bulat Shakirzyanov
committed
handle empty index options
1 parent 4025fd2 commit 07f4960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cassandra/cluster/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def create_column(column)
385385
index = Column::Index.new(column['index_name'])
386386
else
387387
options = ::JSON.load(column['index_options'])
388-
index = Column::Index.new(column['index_name'], options['class_name'])
388+
index = Column::Index.new(column['index_name'], options && options['class_name'])
389389
end
390390

391391
Column.new(name, type, order, index, is_static, is_frozen)

0 commit comments

Comments
 (0)