This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 68d1b9ad657e9154f4d5189f9103958ff73ffef7 Author: Martin Desruisseaux <[email protected]> AuthorDate: Sat Jan 19 16:39:17 2019 +0100 Restore the exception thrown when a value can not be converted. If this exception is thrown in unexpected circumstances, we will try to investigate those circumstances instead. --- .../sis-raster/src/main/java/org/apache/sis/coverage/CategoryList.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/sis-raster/src/main/java/org/apache/sis/coverage/CategoryList.java b/core/sis-raster/src/main/java/org/apache/sis/coverage/CategoryList.java index fca7f29..f008311 100644 --- a/core/sis-raster/src/main/java/org/apache/sis/coverage/CategoryList.java +++ b/core/sis-raster/src/main/java/org/apache/sis/coverage/CategoryList.java @@ -548,8 +548,7 @@ final class CategoryList extends AbstractList<Category> implements MathTransform { category = search(value); if (category == null) { - return Double.NaN; - //throw new TransformException(Resources.format(Resources.Keys.NoCategoryForValue_1, value)); + throw new TransformException(Resources.format(Resources.Keys.NoCategoryForValue_1, value)); } last = category; }
