coverity#1326258 Explicit null dereferenced

Change-Id: I58b07353f4dca7fc24305bd0120ed7db18339e83
This commit is contained in:
Caolán McNamara 2015-10-28 20:57:44 +00:00
parent 4a0a89f2ee
commit ac00222a25

View File

@ -140,7 +140,7 @@ public final class PluginFactoryImpl extends PluginFactory
try {
props.load(is);
String info = props.getProperty(mimeType);
String info = mimeType != null ? props.getProperty(mimeType) : null;
if (info != null) {
ext = info;
}
@ -171,4 +171,4 @@ public final class PluginFactoryImpl extends PluginFactory
DocumentMergerImpl merger = new DocumentMergerImpl(doc, cc);
return merger;
}
}
}