Check for null pointer

Authored by vandenoever on Apr 18 2017, 11:57 AM.

Description

Check for null pointer

AbstractTemplateLoader::loadByName returns a Grantlee::Template.
A Grantlee::Template is a QSharedPointer<TemplateImpl>. This pointer
may be null, e.g. in Grantlee::FileSystemTemplateLoader.

This patch adds a check to avoid a crash when a template could not be loaded.

REVIEW: 130091

Details

Committed
vandenoeverApr 18 2017, 12:00 PM
Parents
R77:2e5aad7d24b3: Activate by default QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
Branches
Unknown
Tags
Unknown