History

Added QTimer* script data type and some nullptr checks

ksuprynowicz committed 4 years ago

Commit e9984c71 parent 80e5f2421 files · +43 −11Browse files

Showing the changes to libraries/script-engine/src/ScriptCache.cpp (1 of 21 files). Show all

Unified · Split

libraries/script-engine/src/ScriptCache.cpp+1−0
@@ -134,6 +134,7 @@ void ScriptCache::scriptContentAvailable(int maxRetries) { · 133 unmodified lines
134134 qCDebug(scriptengine) << "ScriptCache::scriptContentAvailable() on thread [" << QThread::currentThread() << "] expected thread [" << thread() << "]";
135135 #endif
136136 ResourceRequest* req = qobject_cast<ResourceRequest*>(sender());
137+ Q_ASSERT(req != nullptr);
137138 QUrl url = req->getUrl();
138139
139140 QString scriptContent;