DriveSetup: check if editor view exists in AbstractParametersPanel

* Base class needs to check this as well because the subclass might
  not override it (e.g. InitParametersPanel).

* Fixes crash when trying to initialize partition map. Thanks to
  jessicah for pointing this out.
This commit is contained in:
Julian Harnath
2014-03-17 20:50:35 +01:00
parent 181948a678
commit e815ef0795
@@ -278,5 +278,6 @@ void
AbstractParametersPanel::AddControls(BLayoutBuilder::Group<>& builder,
BView* editorView)
{
builder.Add(editorView);
if (editorView != NULL)
builder.Add(editorView);
}