Skip to content

Commit

Permalink
don't error-out when failing to get view model for actors in the GetA…
Browse files Browse the repository at this point in the history
…llActors call

Fixes #559
  • Loading branch information
Yuki-Codes committed Oct 2, 2021
1 parent be973c9 commit 26f6ada
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Anamnesis/Services/TargetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,14 @@ public static List<ActorBasicViewModel> GetAllActors()
if (ptr == IntPtr.Zero)
continue;

results.Add(new ActorBasicViewModel(ptr));
try
{
results.Add(new ActorBasicViewModel(ptr));
}
catch (Exception ex)
{
Log.Warning(ex, $"Faield to create Actor Basic View Model for address: {ptr}");
}
}

return results;
Expand Down

0 comments on commit 26f6ada

Please sign in to comment.