I get a bug on jmix 1 that seems resolved in jmix 2
I have an abstract entity ThirdParty with soft delete.
In a screen I have a collection in about thirdParty with cacheable=“true”
After the soft delete I get the error
Caused by: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "entity" is null
at io.jmix.core.entity.EntityPreconditions.checkEntityType(EntityPreconditions.java:25)
at io.jmix.data.impl.EntityAttributesEraserImpl.collectErasingReferences(EntityAttributesEraserImpl.java:54)
at io.jmix.data.impl.DataStoreInMemoryCrudListener.entityLoading(DataStoreInMemoryCrudListener.java:104)
at io.jmix.core.datastore.DataStoreEntityLoadingEvent.sendTo(DataStoreEntityLoadingEvent.java:85)
at io.jmix.core.datastore.AbstractDataStore.fireEvent(AbstractDataStore.java:343)
at io.jmix.core.datastore.AbstractDataStore.loadList(AbstractDataStore.java:130)
I saw that the getResultFromCache returns an entity list with the thirdParty that was soft deleted… after that the item is set to null but stay in the list… and after that I get the error because checkEntityType don’t like null.