Skip to content

fixed ArrayIndexOutOfBoundsException handling #5

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

Merged

Conversation

muga
Copy link
Contributor

@muga muga commented Mar 27, 2015

The ArrayIndexOutOfBoundsException occurs if the files is empty.

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.elementData(ArrayList.java:400)
    at java.util.ArrayList.get(ArrayList.java:413)
    at org.embulk.input.s3.S3FileInputPlugin.resume(S3FileInputPlugin.java:103)
    at org.embulk.input.s3.S3FileInputPlugin.transaction(S3FileInputPlugin.java:89)
    at org.embulk.spi.FileInputRunner.transaction(FileInputRunner.java:63)
    at org.embulk.exec.LocalExecutor.doRun(LocalExecutor.java:431)
    at org.embulk.exec.LocalExecutor.access$000(LocalExecutor.java:40)
    at org.embulk.exec.LocalExecutor$1.run(LocalExecutor.java:359)
    at org.embulk.exec.LocalExecutor$1.run(LocalExecutor.java:355)
    at org.embulk.spi.Exec.doWith(Exec.java:21)
    at org.embulk.exec.LocalExecutor.run(LocalExecutor.java:355)
     ... 7 more

@frsyuki
Copy link
Contributor

frsyuki commented Mar 27, 2015

Looks good 👍

frsyuki added a commit that referenced this pull request Mar 27, 2015
…if_files_is_empty

fixed ArrayIndexOutOfBoundsException handling
@frsyuki frsyuki merged commit 7d900d9 into master Mar 27, 2015
@dmikurube dmikurube deleted the fix_ArrayIndexOutOfBoundsException_if_files_is_empty branch July 14, 2020 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants