The case probably would never show up, just fixed so it'd disappear from Coverity.
This commit is contained in:
Alexander 2017-02-15 18:37:46 +06:00 committed by GitHub
parent f0e08796b0
commit 92c9f0274f

View File

@ -2013,7 +2013,7 @@ void GlobalOptionsDialog::reflowLayout() {
void GlobalOptionsDialog::setupCloudTab() {
int serverLabelPosition = -1; //no override
#ifdef USE_LIBCURL
_selectedStorageIndex = _storagePopUp->getSelectedTag();
_selectedStorageIndex = (_storagePopUp ? _storagePopUp->getSelectedTag() : Cloud::kStorageNoneId);
if (_storagePopUpDesc) _storagePopUpDesc->setVisible(true);
if (_storagePopUp) _storagePopUp->setVisible(true);