When there is not a match in DataFormatMatcher, the _match field is null, which causes DataFormatMatcher#getMatchedFormatName to throw a NPE. Submitted pull request #591 for your consideration, which just updates the code to match what the javadoc says, and added tests.