Bug in if statement

This commit is contained in:
U-BASIS\dsmyda 2019-05-07 10:17:50 -04:00
parent 5463397785
commit c49c071777

View File

@ -242,7 +242,7 @@ final class TikaTextExtractor implements TextExtractor {
pushbackReader.unread(read); pushbackReader.unread(read);
//Save the metadata if it has not been fetched already. //Save the metadata if it has not been fetched already.
if (nonNull(metadataMap)) { if (metadataMap == null) {
metadataMap = new HashMap<>(); metadataMap = new HashMap<>();
for (String mtdtKey : metadata.names()) { for (String mtdtKey : metadata.names()) {
metadataMap.put(mtdtKey, metadata.get(mtdtKey)); metadataMap.put(mtdtKey, metadata.get(mtdtKey));