]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.cpp
fixed some issues while testing 1.6
[mothur.git] / getoturepcommand.cpp
index 4aab74080f815532ae5a0f38af09981e5fe521ec..441e82438b54c33891d4e80e54cbf38410ca6a87 100644 (file)
@@ -245,7 +245,7 @@ int GetOTURepCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       delete list;
+                       if (list != NULL) {     delete list;    }
                        list = input->getListVector(lastLabel);
                        mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
                        error = process(list);