bootloader: Add missing NULL check.

This commit is contained in:
Augustin Cavalier
2019-01-16 20:37:07 -05:00
parent 1fef0f0fa8
commit a526bddb8d
+1 -1
View File
@@ -426,7 +426,7 @@ Partition::Scan(bool mountFileSystems, bool isBootDevice)
}
// scan for file systems
if (mountFileSystems)
if (mountFileSystems && bestFSModule != NULL)
return _Mount(bestFSModule, NULL);
return B_ENTRY_NOT_FOUND;