Commit 2880a6e0 authored by Andrés G. Aragoneses's avatar Andrés G. Aragoneses

Dap.MassStorage: discard devices with null MountPoint (bgo#751746)

They simply don't work and would start throwing exceptions later.
parent 7ad6e330
......@@ -74,6 +74,11 @@ namespace Banshee.Dap.MassStorage
volume.Mount ();
}
mount_point = volume.MountPoint;
if (mount_point == null) {
throw new InvalidDeviceException ();
}
ms_device = DeviceMapper.Map (this);
try {
if (ms_device.ShouldIgnoreDevice () || !ms_device.LoadDeviceConfiguration ()) {
......@@ -103,8 +108,6 @@ namespace Banshee.Dap.MassStorage
}
Name = ms_device == null ? volume.Name : ms_device.Name;
mount_point = volume.MountPoint;
Initialize ();
if (ms_device != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment