{\r
// (Identical Changes) Result: L = S\r
//doNothing()\r
- //Detect server moves\r
- var targetPath = MoveForServerMove(accountInfo, tuple);\r
- StatusKeeper.StoreInfo(targetPath, tuple.ObjectInfo);\r
+ \r
+ //Don't update anything for nonexistend server files\r
+ if (tuple.S != null)\r
+ {\r
+ //Detect server moves\r
+ var targetPath = MoveForServerMove(accountInfo, tuple);\r
+ StatusKeeper.StoreInfo(targetPath, tuple.ObjectInfo);\r
+ }\r
+ else\r
+ {\r
+ //Log the null tuple for investigation\r
+ Log.WarnFormat("Null tuple detected Path:[{0}], State:[{1}],LocalFile:[{2}]",tuple.FilePath,tuple.FileState,tuple.FileInfo);\r
+ }\r
}\r
else\r
{\r
var serverPath = Path.Combine(accountInfo.AccountPath, relativePath);\r
\r
//Compare Case Insensitive\r
- if (String.Equals(tuple.FilePath ,serverPath,StringComparison.InvariantCultureIgnoreCase)) return serverPath;\r
+ if (String.Equals(tuple.FilePath ,serverPath,StringComparison.InvariantCultureIgnoreCase)) \r
+ return serverPath;\r
\r
if (tuple.FileInfo.Exists)\r
{\r