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 #354
This commit is contained in:
parent
d406866a02
commit
88a55c8795
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user