OSDN Git Service

[libcalamares] Print a big fat warning before a typical now-crash situation
authorAdriaan de Groot <groot@kde.org>
Tue, 18 Aug 2020 15:17:29 +0000 (17:17 +0200)
committerAdriaan de Groot <groot@kde.org>
Tue, 18 Aug 2020 15:17:29 +0000 (17:17 +0200)
src/libcalamares/JobQueue.cpp

index bc3028a..e6e4668 100644 (file)
@@ -156,6 +156,10 @@ JobQueue* JobQueue::s_instance = nullptr;
 JobQueue*
 JobQueue::instance()
 {
+    if ( !s_instance )
+    {
+        cWarning() << "Getting nullptr JobQueue instance.";
+    }
     return s_instance;
 }