Index: src/hg/hgTracks/bamTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bamTrack.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -b -B -U 4 -r1.30 -r1.31
--- src/hg/hgTracks/bamTrack.c	10 Mar 2010 05:07:57 -0000	1.30
+++ src/hg/hgTracks/bamTrack.c	11 May 2010 01:43:26 -0000	1.31
@@ -430,14 +430,14 @@
 if (tg->customPt)
     {
     fileName = trackDbSetting(tg->tdb, "bigDataUrl");
     if (fileName == NULL)
-	errAbort("bamLoadItemsCore: can't find bigDataUrl for custom track %s", tg->mapName);
+	errAbort("bamLoadItemsCore: can't find bigDataUrl for custom track %s", tg->track);
     }
 else
     {
     struct sqlConnection *conn = hAllocConnTrack(database, tg->tdb);
-    fileName = bamFileNameFromTable(conn, tg->mapName, chromName);
+    fileName = bamFileNameFromTable(conn, tg->table, chromName);
     hFreeConn(&conn);
     }
 
 char posForBam[512];

