From 83c4e9ad353864522e93d825d285878c93654985 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 1 Aug 2017 02:45:51 +0200 Subject: [PATCH] Don't crash when an error is found and no error string is passed --- qt/pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/pool.cpp b/qt/pool.cpp index f59253ff1..72c5ca4ce 100644 --- a/qt/pool.cpp +++ b/qt/pool.cpp @@ -73,7 +73,7 @@ bool Pool::load(QString* strerror) { g_autoptr(GError) error = nullptr; bool ret = as_pool_load (d->m_pool, NULL, &error); - if (!ret && error) { + if (!ret && error && strerror) { *strerror = QString::fromUtf8(error->message); } return ret;