]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.cpp
fixed some issues while testing 1.6
[mothur.git] / sharedcommand.cpp
index c49e56ac8d9264f535a7b9c6f7457948f421f69a..4b35138998b13bfe181c743bdfd50e4f64f60752 100644 (file)
@@ -119,7 +119,7 @@ int SharedCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       delete SharedList;
+                       if (SharedList != NULL) {       delete SharedList;      }
                        SharedList = input->getSharedListVector(lastLabel); //get new list vector to process
                                        
                        lookup = SharedList->getSharedRAbundVector();