From 47bd8637abbfe4d4246cdb3316ef96da98ec4b08 Mon Sep 17 00:00:00 2001 From: David Cole Date: Tue, 29 Dec 2009 15:48:14 -0500 Subject: Fix crash on Continuous dashboard - related to last commit fixing issue #10060. Do not call ShouldCreateNewTag if command is NULL... --- Source/cmCTest.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 31f1321..bcbe18e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -477,11 +477,17 @@ int cmCTest::Initialize(const char* binary_dir, cmCTestStartCommand* command) // Create new "TAG" file or read existing one: // + bool createNewTag = true; + if (command) + { + createNewTag = command->ShouldCreateNewTag(); + } + std::string tagfile = testingDir + "/TAG"; std::ifstream tfin(tagfile.c_str()); std::string tag; - if (command->ShouldCreateNewTag()) + if (createNewTag) { time_t tctime = time(0); if ( this->TomorrowTag ) -- cgit v0.12