Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on CassandraSessionFactoryBean when schemaAction not set [DATACASS-130] #304

Closed
spring-projects-issues opened this issue May 18, 2014 · 1 comment
Labels
in: core type: bug

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented May 18, 2014

David Webb opened DATACASS-130 and commented

The CassandraSessionFactoryBean has a protected attribute schemaAction. afterPropertiesSet() does not ensure this is not null, and performSchemaAction() throws a NPE when this is not set.

Solution:
When initializing the attribute, default to NONE.

protected SchemaAction schemaAction = SchemaAction.NONE;

Affects: 1.0 RC1 (Dijkstra)

Referenced from: commits 1194254

@spring-projects-issues
Copy link
Author

spring-projects-issues commented May 19, 2014

David Webb commented

Set default to NONE

@spring-projects-issues spring-projects-issues added type: bug in: core labels Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: bug
Projects
None yet
Development

No branches or pull requests

1 participant