This might be causing a divide by 0 error because all the sizes are 0...

This commit is contained in:
Ray Greenwell
2012-03-15 21:34:32 +00:00
parent cbf49d87b8
commit 828a4638b0
@@ -48,7 +48,9 @@ public class MetaProgressObserver implements ProgressObserver
// documentation inherited from interface
public void progress (int percent)
{
_target.progress((int)((_accum + (percent * _elementSize)) / _totalSize));
if (_elementSize > 0) {
_target.progress((int)((_accum + (percent * _elementSize)) / _totalSize));
}
}
protected ProgressObserver _target;