Skip to content

Commit

Permalink
Merge pull request #1305 from EventStore/phase-can-be-null
Browse files Browse the repository at this point in the history
Projection Processing Phase can be null
  • Loading branch information
hayley-jean committed May 17, 2017
2 parents 3221601 + 830bc51 commit 71ec0db
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -248,7 +248,7 @@ public void CompletePhase()

public void Handle(CoreProjectionManagementMessage.GetState message)
{
if (_state == State.LoadStateRequested || _state == State.StateLoaded)
if (_state == State.LoadStateRequested || _state == State.StateLoaded || _projectionProcessingPhase == null)
{
_publisher.Publish(
new CoreProjectionStatusMessage.StateReport(
Expand All @@ -265,7 +265,7 @@ public void Handle(CoreProjectionManagementMessage.GetState message)

public void Handle(CoreProjectionManagementMessage.GetResult message)
{
if (_state == State.LoadStateRequested || _state == State.StateLoaded)
if (_state == State.LoadStateRequested || _state == State.StateLoaded || _projectionProcessingPhase == null)
{
_publisher.Publish(
new CoreProjectionStatusMessage.ResultReport(
Expand Down

0 comments on commit 71ec0db

Please sign in to comment.