eclipse-january / january

January project
Eclipse Public License 1.0
34 stars 25 forks source link

Fix zero-sized dataset statistics #411

Closed PeterC-DLS closed 4 years ago

PeterC-DLS commented 4 years ago

When a zero-sized dataset is created then calling maxPos/minPos throws an index out of bounds exception. It is less puzzling for callers to throw an unsupported operation exception for max/min and maxPos/minPos in this case.