From 483449e420156ae2e4e98fa96061955a65fa5c0f Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Wed, 13 May 2009 18:16:28 +0200
Subject: [PATCH] There is no output stream so there's nothing to expand.

---
 src/libs/cplusplus/pp-engine.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp
index c362c6fcf53..bb6b6bebf8f 100644
--- a/src/libs/cplusplus/pp-engine.cpp
+++ b/src/libs/cplusplus/pp-engine.cpp
@@ -581,7 +581,8 @@ QByteArray Preprocessor::expand(const QByteArray &source)
 
 void Preprocessor::expand(const QByteArray &source, QByteArray *result)
 {
-    _expand(source, result);
+    if (result)
+        _expand(source, result);
 }
 
 void Preprocessor::expand(const char *first, const char *last, QByteArray *result)
-- 
GitLab