Commit in slicPandora/tests on MAIN
PandoraFrontend.cpp+19-71.7 -> 1.8
check for NULL before printing arguments

slicPandora/tests
PandoraFrontend.cpp 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- PandoraFrontend.cpp	16 Sep 2011 23:31:18 -0000	1.7
+++ PandoraFrontend.cpp	19 Sep 2011 19:24:33 -0000	1.8
@@ -1,4 +1,4 @@
-//$Id: PandoraFrontend.cpp,v 1.7 2011/09/16 23:31:18 jeremy Exp $
+//$Id: PandoraFrontend.cpp,v 1.8 2011/09/19 19:24:33 jeremy Exp $
 
 /**
  * This is a simple frontend to run slicPandora.
@@ -83,13 +83,25 @@
 		}
 	}
 
-	// Print arguments.
-	cout << "slicPandora got these args ..." << endl;
+	// Print arguments before we do anything with them.
+	cout << "slicPandora got these command line arguments..." << endl;
 	cout << endl;
-	cout << "geometryFile (-g) = " << geometryFile << endl;
-	cout << "configFile (-c) = " << configFile << endl;
-	cout << "outputFile (-o) = " << outputFile << endl;
-	cout << "inputFile (-i) = " << inputFile << endl;
+	if (geometryFile != NULL)
+	{
+	    cout << "geometryFile (-g) = " << geometryFile << endl;
+	}
+	if (configFile != NULL)
+	{
+	    cout << "configFile (-c) = " << configFile << endl;
+	}
+	if (outputFile != NULL)
+	{
+	    cout << "outputFile (-o) = " << outputFile << endl;
+	}
+	if (inputFile != NULL)
+	{
+	    cout << "inputFile (-i) = " << inputFile << endl;
+	}
 	if (lcioConfigFile != NULL)
 	{
 		cout << "lcioCollFile (-l) = " << lcioConfigFile << endl;
CVSspam 0.2.8