mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
WPF: Possible fix for NullReferenceException in OnTooltipTimerTick
Resolves #2134
This commit is contained in:
@@ -1905,9 +1905,13 @@ namespace CefSharp.Wpf
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnTooltipTimerTick(object sender, EventArgs e)
|
||||
{
|
||||
tooltipTimer.Stop();
|
||||
// Checks to see if the control is disposed/disposing
|
||||
if (Interlocked.CompareExchange(ref disposeCount, 1, 1) != 1)
|
||||
{
|
||||
tooltipTimer.Stop();
|
||||
|
||||
UpdateTooltip(TooltipText);
|
||||
UpdateTooltip(TooltipText);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user