Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
Fixed a NPE in rows filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-pluskal committed Dec 12, 2016
1 parent bfc1495 commit 3538b87
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,9 @@ private PeakList filterPeakListRows(final PeakList peakList) {
// default.

// Handle < 1 values for minPeakCount
if (minCount < 1)
minCount = peakList.getRawDataFiles().length * minCount;
if ((minCount == null) || (minCount < 1)) minCount = 1.0;
// Round value down to nearest hole number
int intMinCount = (int) (long) (double) minCount;
int intMinCount = minCount.intValue();

// Filter rows.
final PeakListRow[] rows = peakList.getRows();
Expand Down

0 comments on commit 3538b87

Please sign in to comment.