Skip to content

Commit 476e4d2

Browse files
fix(datastore) fix crash caused by null patchItem (#1123)
1 parent 23aa2b4 commit 476e4d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ public <T extends Model> void delete(
578578
ModelSchema schema = modelSchemaRegistry.getModelSchemaForModelInstance(model);
579579
itemChangeSubject.onNext(StorageItemChange.builder()
580580
.item(model)
581+
.patchItem(SerializedModel.create(model, schema))
581582
.modelSchema(schema)
582583
.type(StorageItemChange.Type.DELETE)
583584
.predicate(QueryPredicates.all())

0 commit comments

Comments
 (0)