Add check null for event

This commit is contained in:
Jeremy Wu 2019-08-20 10:25:37 +10:00 committed by GitHub
parent ac8e042333
commit b520b26bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ namespace Wox.Plugin.WebSearch
};
results.Add(result);
ResultsUpdated.Invoke(this, new ResultUpdatedEventArgs
ResultsUpdated?.Invoke(this, new ResultUpdatedEventArgs
{
Results = results,
Query = query
@ -167,4 +167,4 @@ namespace Wox.Plugin.WebSearch
public event ResultUpdatedEventHandler ResultsUpdated;
}
}
}