Skip to content

Commit

Permalink
Nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillemsc committed Mar 27, 2022
1 parent 3eb743e commit 7fd5204
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Runtime/Ui/ViewStack/Instructions/HideInstruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ protected override async Task OnExecute(CancellationToken cancellationToken)
{
UnityEngine.Debug.LogError($"Tried to Hide {nameof(entry.Id)} as Popup, " +
$"but it there was not a current view context, at {nameof(HideInstruction)}");
return;
}

if (entry.IsPopup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protected override void OnInstantExecute()
{
UnityEngine.Debug.LogError($"Tried to MoveCurrentToForeground " +
$"but it there was not a current view context, at {nameof(MoveCurrentToForegroundInstruction)}");
return;
}

bool found = entriesRepository.TryGet(context.ViewId, out IViewStackEntry entry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ protected override void OnInstantExecute()
{
UnityEngine.Debug.LogError($"Tried to SetInteractable {nameof(IViewStackEntry)} of type {entryId}, " +
$"but it was not registered, at {nameof(SetInteractableInstruction)}");

return;
}

Expand Down
1 change: 0 additions & 1 deletion Runtime/Ui/ViewStack/Instructions/ShowInstruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ protected async override Task OnExecute(CancellationToken cancellationToken)
{
UnityEngine.Debug.LogError($"Tried to Show {nameof(IViewStackEntry)} of type {entryId}, " +
$"but it was not registered, at {nameof(ShowInstruction)}");

return;
}

Expand Down

0 comments on commit 7fd5204

Please sign in to comment.