1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Null guard

This commit is contained in:
Brian Fiete 2020-07-31 06:14:08 -07:00
parent 41485f4106
commit efa9566f88

View file

@ -347,6 +347,8 @@ namespace Beefy.widgets
public virtual void CaptureMouse()
{
if (mWidgetWindow == null)
return;
//Debug.WriteLine("CaptureMouse {0}", this);
if (mWidgetWindow.mHasFocus)
mWidgetWindow.mCaptureWidget = this;