mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +00:00
Avoid nullptr dereference when selecting a tilt on radar site change
This commit is contained in:
parent
ceb1ca8416
commit
ddd8977586
1 changed files with 4 additions and 0 deletions
|
|
@ -2097,6 +2097,10 @@ void MapWidgetImpl::CheckLevel3Availability()
|
|||
|
||||
// Get radar product view for fallback and level2 selection
|
||||
auto radarProductView = context_->radar_product_view();
|
||||
if (radarProductView == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Only do this for level3 products
|
||||
if (widget_->GetRadarProductGroup() != common::RadarProductGroup::Level3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue