diff --git a/src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs b/src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs index f4b3ab2232..19c8e455fd 100644 --- a/src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs +++ b/src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs @@ -56,7 +56,7 @@ public async Task On(Envelope @event) if (@event.Payload is ContentEvent contentEvent) { var index = grainFactory.GetGrain(contentEvent.SchemaId.Id); - + if (index == null) { throw new InvalidOperationException("Cannot create reference to grain.");