FIX: ZUGFeRDImporter.java -> Deleted output of Stacktrace if tryBigDecimal fails, as Exceptions are catched
This commit is contained in:
@@ -729,11 +729,9 @@ public class ZUGFeRDImporter {
|
|||||||
try {
|
try {
|
||||||
return new BigDecimal(nodeValue);
|
return new BigDecimal(nodeValue);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
try {
|
try {
|
||||||
return new BigDecimal(Float.valueOf(nodeValue));
|
return new BigDecimal(Float.valueOf(nodeValue));
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
|
||||||
return new BigDecimal("0.00");
|
return new BigDecimal("0.00");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.getName(), "Künstlerische Gestaltung (Stunde): Einer Beispielrechnung");
|
||||||
assertEquals(zi.getLineItemList().get(0).product.getDescription(), "");
|
assertEquals(zi.getLineItemList().get(0).product.getDescription(), "");
|
||||||
|
|
||||||
int i = 1;
|
|
||||||
try {
|
try {
|
||||||
assertEquals(zi.getVersion(), 2);
|
assertEquals(zi.getVersion(), 2);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user