Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ For example:
# ChangeLog Release Notes

See the [ChangeLog.txt file](src/main/javadoc/doc-files/changelog.txt).

# Some Stuff for Liz

Hi there.


6 changes: 1 addition & 5 deletions src/main/java/com/j256/simplemagic/ContentInfoUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,7 @@ public ContentInfo findMatch(InputStream inputStream) throws IOException {
* Return the content type from the associated bytes or null if none of the magic entries matched.
*/
public ContentInfo findMatch(byte[] bytes) {
if (bytes.length == 0) {
return ContentInfo.EMPTY_INFO;
} else {
return magicEntries.findMatch(bytes);
}
return ContentInfo.EMPTY_INFO;
}

/**
Expand Down