Skip to content

Commit

Permalink
fix: First setup crashing because of nullref in memoryEventSource
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrekol committed Jul 19, 2018
1 parent d972053 commit 61b0a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/OsuMemoryEventSource/OsuMemoryEventSourceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ public virtual void Start(ILogger logger)
public void SetNewMap(MapSearchResult map)
{
lock (_lockingObject)
_memoryListener.SetNewMap(map);
_memoryListener?.SetNewMap(map);
}

protected virtual void OnSettingsSettingUpdated(object sender, SettingUpdated e) { }

protected void TimerTick()
{
_memoryListener.Tick(_memoryReader);
_memoryListener?.Tick(_memoryReader);
}
private void TimerCallback(object state)
{
Expand Down

0 comments on commit 61b0a5e

Please sign in to comment.