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

IndexOutOfBoundsException when calling DBFReader#nextRecord() #56

Closed
Hsiungchun opened this issue Jun 4, 2019 · 4 comments
Closed

IndexOutOfBoundsException when calling DBFReader#nextRecord() #56

Hsiungchun opened this issue Jun 4, 2019 · 4 comments
Assignees

Comments

@Hsiungchun
Copy link

The four lines from the stack trace are as follows

java.lang.IndexOutOfBoundsException: Index: 13, Size: 13
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at com.linuxense.javadbf.DBFReader.nextRecord(DBFReader.java:327)
……

I found somewhere strange that may cause the problem. Whether should use recordObjects.get(j) instead of recordObjects.get(i) in DBFReader.java: 327?

Thanks!

@albfernandez albfernandez self-assigned this Jun 4, 2019
@albfernandez
Copy link
Owner

VARCHAR and VARBINARY are not tested. Could you provide a sample file (no private data!!!) to test this type of fields and fix de bug? thanks

@Hsiungchun
Copy link
Author

A sample file is shown below. In addition, it seems to apply to issues #25 and #26 .

javadbf#issue#56-testdata.zip

Thank you for your attention.

@albfernandez
Copy link
Owner

I've relases a new version (1.9.4). I hope it fixed your issue, could you try and confirm please?

@Hsiungchun
Copy link
Author

The latest release works. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants