]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
fixed memory issue with cluster command
[mothur.git] / errorchecking.cpp
index b76542aec7907c0cc3ef80b896c5308985c1c73d..d827929fd94290dbfb302d0fe36e76f4982874a0 100644 (file)
@@ -367,8 +367,8 @@ bool ErrorCheck::checkInput(string input) {
                }
                
                //are you trying to cluster before you have read something                      
-               if (((commandName == "cluster") && (globaldata->getSparseMatrix() == NULL)) ||
-                       ((commandName == "cluster") && (globaldata->getListVector() == NULL))) {
+               if (((commandName == "cluster") && (globaldata->gSparseMatrix == NULL)) ||
+                       ((commandName == "cluster") && (globaldata->gListVector == NULL))) {
                                cout << "Before you use the cluster command, you first need to read in a distance matrix." << endl; 
                                errorFree = false;
                }