]> git.donarmstrong.com Git - mothur.git/blobdiff - summarycommand.cpp
fixed some issues while testing 1.6
[mothur.git] / summarycommand.cpp
index 6ef1faeef4147bdedbaaa31f14076c8a078a1622..731a4101eaff0b6b5712caf15bf7a0ad6feb6e62 100644 (file)
@@ -290,7 +290,7 @@ int SummaryCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       delete sabund;
+                       if (sabund != NULL) {   delete sabund;  }
                        sabund = input->getSAbundVector(lastLabel);
                        
                        mothurOut(sabund->getLabel()); mothurOutEndLine();