Fixed NPE in MappedFileMemoryProvider
@@ -94,6 +94,7 @@ public class MappedFileMemoryProvider implements DirectMemoryProvider {
/** {@inheritDoc} */
@Override public void shutdown() {
+ if (mappedFiles != null) {
for (MappedFile file : mappedFiles) {
try {
file.close();
@@ -103,6 +104,9 @@ public class MappedFileMemoryProvider implements DirectMemoryProvider {
file.file() + ", err=" + e.getMessage() + ']');
}
}
+
+ mappedFiles = null;
+ }
}
/** {@inheritDoc} */
