src/hg/lib/customFactory.c 1.123

1.123 2010/04/21 19:25:40 galt
needed to keep setBbiViewLimits() inside the error-trapped block, otherwise get SIGSEGV now if bigDataUrl invalid
Index: src/hg/lib/customFactory.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/customFactory.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -b -B -U 4 -r1.122 -r1.123
--- src/hg/lib/customFactory.c	10 Apr 2010 19:01:04 -0000	1.122
+++ src/hg/lib/customFactory.c	21 Apr 2010 19:25:40 -0000	1.123
@@ -1484,17 +1484,17 @@
 struct errCatch *errCatch = errCatchNew();
 if (errCatchStart(errCatch))
     {
     track->bbiFile = bigWigFileOpen(bigDataUrl);
+    setBbiViewLimits(track);
     }
 errCatchEnd(errCatch);
 if (errCatch->gotError)
     {
     track->networkErrMsg = cloneString(errCatch->message->string);
     }
 errCatchFree(&errCatch);
 
-setBbiViewLimits(track);
 return track;
 }
 
 static struct customFactory bigWigFactory =