// ignore anything outside the sequence region
for (FTSData row : collectedResults)
{
- int up_s = (Integer) row.getSummaryData()[idx_ups];
- int up_e = (Integer) row.getSummaryData()[idx_upe];
- String provider = (String) row.getSummaryData()[idx_mprov];
- String mcat = (String) row.getSummaryData()[idx_mcat];
- // this makes sure all new categories are in the score array.
- int scorecat = scoreCategory(mcat);
- if (sourceFilter == null || sourceFilter.equals(provider))
+ if (row.getSummaryData() != null && row.getSummaryData()[idx_ups]!=null)
{
- if (seq == row.getSummaryData()[0] && up_e > seq.getStart()
- && up_s < seq.getEnd())
+ int up_s = (Integer) row.getSummaryData()[idx_ups];
+ int up_e = (Integer) row.getSummaryData()[idx_upe];
+ String provider = (String) row.getSummaryData()[idx_mprov];
+ String mcat = (String) row.getSummaryData()[idx_mcat];
+ // this makes sure all new categories are in the score array.
+ int scorecat = scoreCategory(mcat);
+ if (sourceFilter == null || sourceFilter.equals(provider))
{
- filteredResponse.add(row);
+ if (seq == row.getSummaryData()[0] && up_e > seq.getStart()
+ && up_s < seq.getEnd())
+ {
+ filteredResponse.add(row);
+ }
}
}
}