diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-09-05 12:58:38 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-09-05 13:04:09 +0000 |
commit | f6abd1100ca92c29dd9ab507d47a51285c19fb0d (patch) | |
tree | 75b36c5ffa6dee277c58dd001c7b1d79ffcec24d | |
parent | c08c1a48c7062eb84569b6c9bd89551bee3a4fa7 (diff) |
Fix potential dereference of Artifact null pointer
This amends 10b8b75f42.
Change-Id: I50dcfb8a79cd3a1a7c7baf4b34d15dda7035695a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/lib/corelib/buildgraph/artifact.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/artifact.h b/src/lib/corelib/buildgraph/artifact.h index 0381752a9..4d2a20086 100644 --- a/src/lib/corelib/buildgraph/artifact.h +++ b/src/lib/corelib/buildgraph/artifact.h @@ -130,7 +130,7 @@ private: template<> inline QString Set<Artifact *>::toString(Artifact * const &artifact) const { - return artifact->filePath(); + return artifact ? artifact->filePath() : QLatin1String("<null>"); } template<> inline const void *uniqueAddress(const Artifact *a) { |