Skip to content

Commit

Permalink
hotfix - handle missing output files
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMayo committed Jun 28, 2017
1 parent f6bc86d commit f4ba0df
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,18 @@ protected void recalculate(final IStoreItem subject)
{
// clear out the lists, first
final DoubleDataset ds = performCalc();
final Document<?> output = getOutputs().get(0);
output.setDataset(ds);
if (!getOutputs().isEmpty())
{
final Document<?> output = getOutputs().get(0);
output.setDataset(ds);

// and fire updates
output.fireDataChanged();
// and fire updates
output.fireDataChanged();
}
else
{
System.err.println("no outputs");
}
}
}

Expand Down

0 comments on commit f4ba0df

Please sign in to comment.