Skip to content

NPE in Table.java line 609 due to null data #35

@tatu-at-datastax

Description

@tatu-at-datastax

I get NPE with stack trace of:

java.lang.NullPointerException: Cannot invoke "com.datastax.astra.client.collections.definition.documents.Document.map(java.lang.Class)" because the return value of "com.datastax.astra.internal.api.DataAPIData.getDocument()" is null
	at com.datastax.astra.client.tables.Table.findOne(Table.java:609)
	at com.datastax.astra.client.tables.Table.findOne(Table.java:636)
	at com.datastax.stargate.perf.insertmany.entity.ItemTable.validateIsEmpty(ItemTable.java:35)
	at com.datastax.stargate.perf.insertmany.InsertManyClient.initialize(InsertManyClient.java:89)
	at com.datastax.stargate.perf.insertmany.InsertManyTableTest.call(InsertManyTableTest.java:50)
	at com.datastax.stargate.perf.insertmany.InsertManyTableTest.call(InsertManyTableTest.java:13)

for findOne command on (I think) empty table, no filters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions