]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactsharedcommand.cpp
fixed some issues while testing 1.6
[mothur.git] / rarefactsharedcommand.cpp
index 79bf7bb113ddd682849421f577c80fee3baff082..7e1b4773ddb0505861fd90a2c0064b37ce5e9c59 100644 (file)
@@ -239,7 +239,7 @@ int RareFactSharedCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       for (int i = 0; i < lookup.size(); i++) {  delete lookup[i];  } 
+                       for (int i = 0; i < lookup.size(); i++) {  if (lookup[i] != NULL) {     delete lookup[i]; }  } 
                        lookup = input->getSharedRAbundVectors(lastLabel);
 
                        mothurOut(lookup[0]->getLabel()); mothurOutEndLine();