Check for null pointer.

Review Request #130091 - Created April 18, 2017 and submitted

Information
Jos van den Oever
grantleetheme
16.12.03
Reviewers
kdepim

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.

On my setup tests fail with or without this patch.

Files


Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Laurent Montel
Laurent Montel
Jos van den Oever
Laurent Montel
Jos van den Oever
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 2977004652cf91e5bb122d7648af04fd6d6c4728 by Jos van den Oever to branch master.
Loading...