don't assume we find a corona

BUG:359026
Change-Id: Idfb18a02f6e1ae35b0b1722c24a784345438003d
This commit is contained in:
Marco Martin 2016-02-08 11:59:58 +01:00
parent 4ebf130ee6
commit 1b2c1caf39

View File

@ -115,6 +115,10 @@ void ConfigViewPrivate::init()
} else {
corona = applet.data()->containment()->corona();
}
if (!corona) {
qWarning() << "Cannot find a Corona, this should never happen!";
return;
}
if (corona->package().isValid()) {
PackageUrlInterceptor *interceptor = new PackageUrlInterceptor(q->engine(), corona->package());