1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 18:15:47 +02:00

Work around NullReferenceException when browser frame load events have a null URL

Closes 
This commit is contained in:
chylex 2023-03-09 20:27:57 +01:00
parent d406866a02
commit 88a55c8795
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -59,11 +59,15 @@ private void OnLoadError(object? sender, LoadErrorEventArgs e) {
}
private void OnFrameLoadStart(object? sender, FrameLoadStartEventArgs e) {
base.OnFrameLoadStart(e.Url, e.Frame);
if (!string.IsNullOrEmpty(e.Url)) {
base.OnFrameLoadStart(e.Url, e.Frame);
}
}
private void OnFrameLoadEnd(object? sender, FrameLoadEndEventArgs e) {
base.OnFrameLoadEnd(e.Url, e.Frame);
if (!string.IsNullOrEmpty(e.Url)) {
base.OnFrameLoadEnd(e.Url, e.Frame);
}
}
}
}