small workaround to prevent network preflet crashes on NAT network cards in VirtualBox and VMWare. Not a final solution but preventing a crash is always a plus. resolves #7038. Thanks Skipp_OSX!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41412 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-05-10 03:03:29 +00:00
parent 2613175e19
commit c9769c1cc4
@@ -236,7 +236,8 @@ EthernetSettingsView::AttachedToWindow()
fTypeMenuField->Menu()->SetTargetForItems(this);
// display settigs of first adapter on startup
_ShowConfiguration(fSettings.ItemAt(0));
if (fSettings.ItemAt(0))
_ShowConfiguration(fSettings.ItemAt(0));
}