Revision 7c4a9354

b/trunk/Pithos.Client.WPF/PithosAccount.cs
155 155
                    using (var reader=new StreamReader(stream))
156 156
                    {
157 157
                        var request = await reader.ReadLineAsync();
158
                        if (request == null)
159
                            throw new Exception("Nothing retrieved");
158 160
                        Log.InfoFormat("[RETRIEVE] Got Connection {0}", request);
159 161

  
160 162

  
b/trunk/Pithos.Core/Agents/BlockExtensions.cs
77 77
           //The hash for directories is an empty string
78 78
           if (info is DirectoryInfo)
79 79
                return String.Empty;
80
           
80
           //The hash for non-existent files is an empty string
81
           if (!info.Exists)
82
               return String.Empty;
83

  
81 84
           var fileInfo = (FileInfo)info;
82 85
           if (fileInfo.Length <= blockSize)
83 86
                return Signature.CalculateMD5(info.FullName);

Also available in: Unified diff