Fix CSA warnings: Called C++ object pointer is null

Logic error: Called C++ object pointer is null
 1: Calling 'MainWindow::createNotifyIcons' in /home/phenom/GIT/
RetroShare/trunk/retroshare-gui/src/gui/MainWindow.cpp:291
 2: Loop body executed 0 times in /home/phenom/GIT/RetroShare/trunk/
retroshare-gui/src/gui/MainWindow.cpp:600
 3: Calling 'MainWindow::updateTrayCombine' in /home/phenom/GIT/
RetroShare/trunk/retroshare-gui/src/gui/MainWindow.cpp:605
 4: Value assigned to field 'notifyMenu' in /home/phenom/GIT/RetroShare/
trunk/retroshare-gui/src/gui/MainWindow.cpp:654
 5: Assuming pointer value is null in /home/phenom/GIT/RetroShare/trunk/
retroshare-gui/src/gui/MainWindow.cpp:658
 6: Called C++ object pointer is null in /home/phenom/GIT/RetroShare/
trunk/retroshare-gui/src/gui/MainWindow.cpp:679
This commit is contained in:
Phenom 2017-04-19 14:06:56 +02:00 committed by csoler
parent 90cd6233d8
commit 30632dcfeb

View File

@ -676,7 +676,8 @@ void MainWindow::updateTrayCombine()
}
}
notifyMenu->menuAction()->setVisible(visible);
if (notifyMenu)
notifyMenu->menuAction()->setVisible(visible);
// update tray icon
updateFriends();