cf439153331e3408020a5943d46b3eb6461ba073
chmalee
  Mon Jul 2 14:42:13 2018 -0700
No need to check for adding too many fields since chopTabs does it automatically, change from code review  refs #21687

diff --git src/hg/hgc/barChartClick.c src/hg/hgc/barChartClick.c
index 546f1ba..f8faa88 100644
--- src/hg/hgc/barChartClick.c
+++ src/hg/hgc/barChartClick.c
@@ -67,32 +67,30 @@
 struct bigBedInterval *bb, *bbList =  bigBedIntervalQuery(bbi, chrom, start, end, 0, lm);
 for (bb = bbList; bb != NULL; bb = bb->next)
     {
     char *rest = cloneString(bb->rest);
     char startBuf[16], endBuf[16];
     char *row[32];
     bigBedIntervalToRow(bb, chrom, startBuf, endBuf, row, ArraySize(row));
     struct barChartBed *barChart = barChartBedLoadOptionalOffsets(row, hasOffsets);
     if (barChart == NULL)
         continue;
     if (sameString(barChart->name, item))
         {
         char *restFields[EXTRA_FIELDS_SIZE];
         int restCount = chopTabs(rest, restFields);
         int restBedFields = (6 + (hasOffsets ? 2 : 0));
-        if ((restCount - restBedFields) > EXTRA_FIELDS_SIZE)
-            errAbort("More than %d extraFields in barChart file %s\n", EXTRA_FIELDS_SIZE, tdb->table);
         if (restCount > restBedFields)
             {
             int i;
             for (i = 0; i < restCount - restBedFields; i++)
                 extraFieldsRet[i] = restFields[restBedFields + i];
             *extraFieldsCountRet = (restCount - restBedFields);
             }
         return barChart;
         }
     }
 return NULL;
 }
 
 static struct barChartBed *getBarChartFromTable(struct trackDb *tdb, char *table, 
                                                 char *item, char *chrom, int start, int end)