From 3bc6bf9e992b0c2e0f82591608f2037fdd313297 Mon Sep 17 00:00:00 2001
From: Taloth Saldono <Taloth@users.noreply.github.com>
Date: Thu, 25 Feb 2016 21:40:55 +0100
Subject: [PATCH] Don't die in MonoTorrent if nodes is an empty string.

---
 src/MonoTorrent/Torrent.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/MonoTorrent/Torrent.cs b/src/MonoTorrent/Torrent.cs
index cadea0be6..726131f94 100644
--- a/src/MonoTorrent/Torrent.cs
+++ b/src/MonoTorrent/Torrent.cs
@@ -774,7 +774,8 @@ namespace MonoTorrent
                             break;
 
                         case ("nodes"):
-                            this.nodes = (BEncodedList)keypair.Value;
+                            if (keypair.Value.ToString().Length != 0)
+                                this.nodes = (BEncodedList)keypair.Value;
                             break;
 
                         case ("comment.utf-8"):