FIX: ZUGFeRDImporter.java -> Deleted output of Stacktrace if tryBigDecimal fails, as Exceptions are catched

This commit is contained in:
Alexander Berndt
2020-05-28 15:21:15 +02:00
parent 02a6958865
commit ffb7a36500
2 changed files with 0 additions and 3 deletions

View File

@@ -729,11 +729,9 @@ public class ZUGFeRDImporter {
try {
return new BigDecimal(nodeValue);
} catch (Exception e) {
e.printStackTrace();
try {
return new BigDecimal(Float.valueOf(nodeValue));
} catch (Exception ex) {
ex.printStackTrace();
return new BigDecimal("0.00");
}
}

View File

@@ -235,7 +235,6 @@ public class ZF2Test extends MustangReaderTestCase {
assertEquals(zi.getLineItemList().get(0).product.getName(), "Künstlerische Gestaltung (Stunde): Einer Beispielrechnung");
assertEquals(zi.getLineItemList().get(0).product.getDescription(), "");
int i = 1;
try {
assertEquals(zi.getVersion(), 2);
} catch (Exception e) {