6992d44bfe238ffb2c2d559b23cf739bee503fda
chmalee
  Fri May 11 15:27:50 2018 -0700
Adding a clear button to phyloPng and changing the default tree, refs #17322

diff --git src/lib/phyloTree.c src/lib/phyloTree.c
index 5195530..d2004be 100644
--- src/lib/phyloTree.c
+++ src/lib/phyloTree.c
@@ -220,30 +220,32 @@
 	}
     }
 }
 
 
 struct phyloTree *phyloParseString(char *string)
 /* build a phyloTree from a string */
 {
 struct phyloTree *tree = NULL;
 
 replaceWhitespaceWithSpaces(string);
 
 char *ptr = string;
 tree = parseSubTree(&ptr);
 
+if (tree == NULL)
+    errAbort("expecting properly formatted tree");
 if (*ptr != ';')
     errAbort("expecting tree terminator ';', found '%s'", ptr);
 
 return tree;
 }
 
 
 /*  some static stuff for printing out trees */
 static int recurseCount = 0;
 
 static void tabOut(FILE *f)
 {
 int i;
 
 for(i=0; i < recurseCount; i++)