]> source.dussan.org Git - poi.git/commitdiff
md5hash should not fail silently
authorJaven O'Neal <onealj@apache.org>
Sun, 1 Jan 2017 06:58:01 +0000 (06:58 +0000)
committerJaven O'Neal <onealj@apache.org>
Sun, 1 Jan 2017 06:58:01 +0000 (06:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776828 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/ss/extractor/TestEmbeddedExtractor.java

index 225e50660b47ace58a3f06cb416c1fd3d7bd9a31..c8942965d8878e25caa279db7ecdd5ffaf09cf7c 100644 (file)
@@ -109,7 +109,7 @@ public class TestEmbeddedExtractor {
             return DatatypeConverter.printBase64Binary(hash);
         } catch (NoSuchAlgorithmException e) {
             // doesn't happen
-            return "";
+            throw new RuntimeException(e);
         }
     }
 }