Skip to content

Commit

Permalink
FPGE: Fix exception when no inliers present
Browse files Browse the repository at this point in the history
  • Loading branch information
pbailis committed Aug 17, 2016
1 parent a9edfa9 commit a030002
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public List<ItemsetResult> getEmergingItemsetsWithMinSupport(List<Datum> inliers
double minRatio,
// would prefer not to pass this in, but easier for now...
DatumEncoder encoder) {
if (!combinationsEnabled || inliers.get(0).attributes().size() == 1) {
if (!combinationsEnabled || (inliers.size() > 0 && inliers.get(0).attributes().size() == 1)) {
return getSingletonItemsets(inliers, outliers, minSupport, minRatio, encoder);
}

Expand Down

0 comments on commit a030002

Please sign in to comment.