[banshee/stable-1.8] [AppleDevice] Make sure our IpodInfo isn't null
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.8] [AppleDevice] Make sure our IpodInfo isn't null
- Date: Thu, 13 Jan 2011 19:13:58 +0000 (UTC)
commit 73f9b312f9e5da91ca9a8a36b1d4d2e356aac66a
Author: Alex Launi <alex launi canonical com>
Date: Thu Dec 16 13:21:07 2010 -0500
[AppleDevice] Make sure our IpodInfo isn't null
.../Banshee.Dap.AppleDevice/AppleDeviceSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
index 70722a3..8b1ee2d 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -92,7 +92,7 @@ namespace Banshee.Dap.AppleDevice
SupportsVideo = Device.SupportsVideo;
Initialize ();
- GPod.ITDB.InitIpod (Volume.MountPoint, Device.IpodInfo.ModelNumber, Name);
+ GPod.ITDB.InitIpod (Volume.MountPoint, Device.IpodInfo == null ? null : Device.IpodInfo.ModelNumber, Name);
// FIXME: Properly parse the device, color and generation and don't use the fallback strings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]