mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Don't crash in uncaughtException() if there isn't an exception
This commit is contained in:
parent
4beb5eceeb
commit
cd02b22bd7
1 changed files with 5 additions and 1 deletions
|
@ -1540,7 +1540,11 @@ void ScriptEngineV8::setThread(QThread* thread) {
|
|||
|
||||
|
||||
std::shared_ptr<ScriptException> ScriptEngineV8::uncaughtException() const {
|
||||
return _uncaughtException->clone();
|
||||
if (_uncaughtException) {
|
||||
return _uncaughtException->clone();
|
||||
} else {
|
||||
return std::shared_ptr<ScriptException>();
|
||||
}
|
||||
}
|
||||
|
||||
bool ScriptEngineV8::raiseException(const QString& error, const QString &reason) {
|
||||
|
|
Loading…
Reference in a new issue