Commit 28b6c070 authored by Don Gagne's avatar Don Gagne

Merge pull request #1186 from DonLakeFlyer/FirmwareCrash

Fix crash when no UAS
parents 808a835d 7679f75f
......@@ -120,7 +120,7 @@ void SetupView::_setConnectedView(void)
void SetupView::_firmwareButtonClicked(void)
{
if (_uasCurrent->isArmed()) {
if (_uasCurrent && _uasCurrent->isArmed()) {
QGCMessageBox::warning("Setup", "Firmware Update cannot be performed while vehicle is armed.");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment