diff --git a/apps/opencs/view/world/table.cpp b/apps/opencs/view/world/table.cpp index f2999bbbd..edf3bc6de 100644 --- a/apps/opencs/view/world/table.cpp +++ b/apps/opencs/view/world/table.cpp @@ -499,6 +499,11 @@ void CSVWorld::Table::dropEvent(QDropEvent *event) { QModelIndex index = indexAt (event->pos()); + if (!index.isValid()) + { + return; + } + const CSMWorld::TableMimeData* mime = dynamic_cast (event->mimeData()); if (mime->fromDocument (mDocument)) {