You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CassandraTemplate.appendIdCriteria throws NullPointerException when using it together with a MapId but only if the map keys are different from the property names in the given entity.
Code to reproduce:
@Table("user_tokens")
public class UserToken {
@PrimaryKeyColumn(name = "the_user_id", type = PrimaryKeyType.PARTITIONED,
ordinal = 0) @CassandraType(type = Name.UUID) private UUID userId;
}
template.selectOneById(UserToken.class, BasicMapId.id("the_user_id", userToken.getUserId()));
leads to:
java.lang.NullPointerException
at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:425)
at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:433)
at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:466)
at org.springframework.data.cassandra.core.CassandraTemplate.selectOneById(CassandraTemplate.java:410)
Mark Paluch opened DATACASS-308 and commented
CassandraTemplate.appendIdCriteria
throwsNullPointerException
when using it together with aMapId
but only if the map keys are different from the property names in the given entity.Code to reproduce:
leads to:
Affects: 1.3.4 (Gosling SR4)
Referenced from: pull request #73
The text was updated successfully, but these errors were encountered: