mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 11:30:04 +00:00
Ensure radar product view is not null prior to running mouse picking
This commit is contained in:
parent
f9d621d940
commit
e2bb6563dc
1 changed files with 5 additions and 0 deletions
|
|
@ -342,6 +342,11 @@ bool RadarProductLayer::RunMousePicking(
|
|||
std::shared_ptr<view::RadarProductView> radarProductView =
|
||||
context()->radar_product_view();
|
||||
|
||||
if (radarProductView == nullptr)
|
||||
{
|
||||
return itemPicked;
|
||||
}
|
||||
|
||||
std::optional<std::uint16_t> binLevel =
|
||||
radarProductView->GetBinLevel(mouseGeoCoords);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue