Skip to content

NPE when handling corrupt jar files - #43

Open
sidhax wants to merge 1 commit into
victims:masterfrom
sidhax:master
Open

NPE when handling corrupt jar files#43
sidhax wants to merge 1 commit into
victims:masterfrom
sidhax:master

Conversation

@sidhax

Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a finally block. Something like

ByteArrayOutputStreambos = newByteArrayOutputStream();
Contentfile = null;
try {
// stuff
} catch (IOExceptionio) {
// handle message handling and re-throw
} finally {
bos.close();
returnfile;
}

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sidhax@abn