File tree 1 file changed +3
-0
lines changed
MekHQ/src/mekhq/campaign/finances
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -561,6 +561,7 @@ private static List<Transaction> parseTransactionsFromXML(final Node wn) {
561
561
final NodeList nl = wn .getChildNodes ();
562
562
return IntStream .range (0 , nl .getLength ())
563
563
.mapToObj (nl ::item )
564
+ .filter (node -> "transaction" .equals (node .getNodeName ()))
564
565
.map (Transaction ::generateInstanceFromXML )
565
566
.collect (Collectors .toList ());
566
567
}
@@ -573,6 +574,7 @@ private static List<Loan> parseLoansFromXML(final Node wn) {
573
574
final NodeList nl = wn .getChildNodes ();
574
575
return IntStream .range (0 , nl .getLength ())
575
576
.mapToObj (nl ::item )
577
+ .filter (node -> "loan" .equals (node .getNodeName ()))
576
578
.map (Loan ::generateInstanceFromXML )
577
579
.collect (Collectors .toList ());
578
580
}
@@ -585,6 +587,7 @@ private static List<Asset> parseAssetsFromXML(final Node wn) {
585
587
final NodeList nl = wn .getChildNodes ();
586
588
return IntStream .range (0 , nl .getLength ())
587
589
.mapToObj (nl ::item )
590
+ .filter (node -> "asset" .equals (node .getNodeName ()))
588
591
.map (Asset ::generateInstanceFromXML )
589
592
.collect (Collectors .toList ());
590
593
}
You can’t perform that action at this time.
0 commit comments