1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Null check

This commit is contained in:
Brian Fiete 2023-01-26 10:54:49 -05:00
parent 06ac941471
commit 20b1827632

View file

@ -3912,11 +3912,14 @@ namespace IDE
if (!nextTabbedView.mWidgetWindow.mHasFocus)
nextTabbedView.mWidgetWindow.SetForeground();
var activeTab = nextTabbedView.GetActiveTab();
activeTab.Activate();
if (let sourceViewPanel = activeTab.mContent as SourceViewPanel)
if (activeTab != null)
{
sourceViewPanel.HilitePosition(.Always);
activeTab.Activate();
if (let sourceViewPanel = activeTab.mContent as SourceViewPanel)
{
sourceViewPanel.HilitePosition(.Always);
}
}
}
}