mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Avoid NULL dereference
Coverity CID 1325297 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
15a55b9648
commit
a51903fbb6
1 changed files with 2 additions and 1 deletions
|
@ -565,6 +565,7 @@ void DiveLocationLineEdit::setCurrentDiveSiteUuid(uint32_t uuid)
|
|||
struct dive_site *ds = get_dive_site_by_uuid(uuid);
|
||||
if (!ds)
|
||||
clear();
|
||||
else
|
||||
setText(ds->name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue