1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Avoid possible null dereferencing

This commit is contained in:
Andrei Kortunov 2021-01-09 14:24:04 +04:00
parent 33648313a6
commit c9b885ffd4

View File

@ -20,7 +20,8 @@ CSMWorld::UniversalId CSVWorld::DragDropUtils::getAcceptedData(const QDropEvent
{ {
if (canAcceptData(event, type)) if (canAcceptData(event, type))
{ {
return getTableMimeData(event)->returnMatching(type); if (const CSMWorld::TableMimeData *data = getTableMimeData(event))
return data->returnMatching(type);
} }
return CSMWorld::UniversalId::Type_None; return CSMWorld::UniversalId::Type_None;
} }