The _placeholderCheckBox only exists if the experimental features are enabled
Found via the crash reporter
https://sentry.io/owncloud/desktop-win-and-mac/issues/
556407777/
bool FolderWizardSelectiveSync::validatePage()
{
wizard()->setProperty("selectiveSyncBlackList", QVariant(_selectiveSync->createBlackList()));
- wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox->isChecked()));
+ wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox && _placeholderCheckBox->isChecked()));
return true;
}
private:
SelectiveSyncWidget *_selectiveSync;
- QCheckBox *_placeholderCheckBox;
+ QCheckBox *_placeholderCheckBox = nullptr;
};
/**