From 5b9ddb14f5d5bd16f4d6d8eccabb19b62e9f91fe Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <vvasilev@cern.ch>
Date: Thu, 13 Mar 2014 12:33:25 +0100
Subject: [PATCH] We may not have incr executor.

---
 interpreter/cling/lib/Interpreter/Interpreter.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/interpreter/cling/lib/Interpreter/Interpreter.cpp b/interpreter/cling/lib/Interpreter/Interpreter.cpp
index df13c74b526..05fb6fd7f30 100644
--- a/interpreter/cling/lib/Interpreter/Interpreter.cpp
+++ b/interpreter/cling/lib/Interpreter/Interpreter.cpp
@@ -934,7 +934,8 @@ namespace cling {
   void Interpreter::unload(unsigned numberOfTransactions) {
     while(true) {
       cling::Transaction* T = m_IncrParser->getLastTransaction();
-      m_Executor->runAndRemoveStaticDestructors(T);
+      if (m_Executor) // we also might be in fsyntax-only mode.
+        m_Executor->runAndRemoveStaticDestructors(T);
       m_IncrParser->unloadTransaction(T);
 
       if (InterpreterCallbacks* callbacks = getCallbacks())
-- 
GitLab