diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index eb82b7fd0e9..0861379d1d6 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -371,6 +371,8 @@ void QResourcePrivate::ensureInitialized() const { if (!related.isEmpty()) return; + if (resourceGlobalData.isDestroyed()) + return; QResourcePrivate *that = const_cast(this); if (fileName == ":"_L1) that->fileName += u'/';