Commit c1eff4ee authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Ensure object to exist before accessing.

parent c360b97c
......@@ -26,6 +26,7 @@
#include "core/resources/languageresource.h"
#include "core/resources/courseresource.h"
#include "core/resources/skeletonresource.h"
#include "artikulate_debug.h"
#include "settings.h"
#include <KLocalizedString>
#include <KStandardGuiItem>
......@@ -101,6 +102,10 @@ void NewCourseDialog::createCourse()
break;
}
}
if (!language) {
qCCritical(ARTIKULATE_LOG) << "Could not find any language resource.";
return;
}
}
// set path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment