Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java exception in version 2.2.3 #31

Closed
msccip opened this issue Jun 17, 2024 · 1 comment
Closed

java exception in version 2.2.3 #31

msccip opened this issue Jun 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@msccip
Copy link

msccip commented Jun 17, 2024

With the new version 2.2.3 I get the following error with all tested invoices:

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.get(Unknown Source)
at un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._100.TradePriceType.getAppliedTradeAllowanceChargeAtIndex(TradePriceType.java:842)
at com.helger.en16931.cii2ubl.CIIToUBL21Converter.convertToInvoice(CIIToUBL21Converter.java:1391)
at com.helger.en16931.cii2ubl.CIIToUBL21Converter.convertCIItoUBL(CIIToUBL21Converter.java:2317)
at com.helger.en16931.cii2ubl.AbstractCIIToUBLConverter.convertCIItoUBL(AbstractCIIToUBLConverter.java:788)
at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:297)
at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:67)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.main(CIIToUBLConverter.java:381)

@phax phax self-assigned this Jun 17, 2024
@phax phax added the bug Something isn't working label Jun 17, 2024
phax added a commit that referenced this issue Jun 17, 2024
@phax
Copy link
Owner

phax commented Jun 17, 2024

Thanks - good catch. That indeed is a regression from 2.2.3.
Building 2.2.4 immediately.

@phax phax closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants