From b576d1ec1596088056cd5110f0ee24e8d3dfe913 Mon Sep 17 00:00:00 2001
From: Alex Schmidt <alex@treefish.org>
Date: Tue, 22 Jan 2013 12:06:06 +0100
Subject: [PATCH] ...

---
 configcache.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configcache.cpp b/configcache.cpp
index 7409b39..96dc470 100644
--- a/configcache.cpp
+++ b/configcache.cpp
@@ -135,7 +135,7 @@ bool configcache::readConfig()
       if( inFile.is_open() ) 
 	{
 	  if (openFileDesc.doVirtualEquilibration) {
-	    *out->log << "CCACHE: Trying virtual equilibration." << endl << flush;
+	    if(out) *out->log << "CCACHE: Trying virtual equilibration." << endl << flush;
 	    openFileDesc.doVirtualEquilibration = false;
 	    for (int iskip=0; iskip < (NEQUI-openFileDesc.nequi)/openFileDesc.nskip; iskip++) {
 	      if( readConfigToMem(tmpConfig) != configSize || ! inFile.is_open() )
@@ -149,7 +149,7 @@ bool configcache::readConfig()
 	      return true;
 	    }
 	  else {
-	    *out->log << "CCACHE: Closing dat-file: " << openFileDesc.filename << endl << flush;
+	    if(out) *out->log << "CCACHE: Closing dat-file: " << openFileDesc.filename << endl << flush;
 	    inFile.close();
 	  }
 	}
-- 
2.39.5