System.NullReferenceException: Object reference not set to an instance of an object.
at Elsa.Activities.Signaling.SignalReceivedBookmarkProvider.GetBookmarksInternalAsync(BookmarkProviderContext`1 context, CancellationToken cancellationToken)+MoveNext()
at Elsa.Activities.Signaling.SignalReceivedBookmarkProvider.GetBookmarksInternalAsync(BookmarkProviderContext`1 context, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|620_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|620_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at Elsa.Activities.Signaling.SignalReceivedBookmarkProvider.GetBookmarksAsync(BookmarkProviderContext`1 context, CancellationToken cancellationToken)
at Elsa.Services.BookmarkProvider`2.Elsa.Services.IBookmarkProvider.GetBookmarksAsync(BookmarkProviderContext context, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggersForActivityBlueprintAndWorkflowProvider.GetTriggersForBookmarkProvider(IBookmarkProvider provider, BookmarkProviderContext context, IActivityBlueprint activityBlueprint, IWorkflowBlueprint workflowBlueprint, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggersForActivityBlueprintAndWorkflowProvider.GetTriggersForActivityBlueprintAsync(IActivityBlueprint activityBlueprint, WorkflowExecutionContext workflowExecutionContext, IDictionary`2 activityTypes, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggersForBlueprintsProvider.<>c__DisplayClass6_0.<<GetWorkflowTriggersForWorkflowBlueprintAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Elsa.Services.Triggers.TriggersForBlueprintsProvider.GetWorkflowTriggersForWorkflowBlueprintAsync(IWorkflowBlueprint workflowBlueprint, IDictionary`2 activityTypes, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggersForBlueprintsProvider.GetTriggersAsync(IEnumerable`1 workflowBlueprints, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggerIndexer.IndexTriggersAsync(IEnumerable`1 workflowBlueprints, CancellationToken cancellationToken)
at Elsa.Services.Triggers.TriggerIndexer.IndexTriggersAsync(CancellationToken cancellationToken)
at Elsa.StartupTasks.IndexTriggers.ExecuteAsync(CancellationToken cancellationToken)
at Elsa.Runtime.StartupRunner.StartupAsync(CancellationToken cancellationToken)
at Elsa.HostedServices.StartupRunnerHostedService.StartAsync(CancellationToken cancellationToken)
Reproduction steps... once I work out how I broke it first.
Create a workflow from the designer.
Add signal received activity
neglect everything it shows you and press save
Save and publish
Restart the site
This adds in an activity that looks something like:
During startup:
Reproduction steps... once I work out how I broke it first.
This adds in an activity that looks something like:
Just adding a blank (empty string) literal value in fixes it. eg: