From ed550d9480e15c27fdf45a9a4c0026f603d50caf Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 11 八月 2018 15:02:27 +0800
Subject: [PATCH] 2192 Debug文件下载
---
System/Debug/DebugUtility.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/System/Debug/DebugUtility.cs b/System/Debug/DebugUtility.cs
index e587248..6130f32 100644
--- a/System/Debug/DebugUtility.cs
+++ b/System/Debug/DebugUtility.cs
@@ -42,8 +42,12 @@
if (debugAccount)
{
- var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
- debugBranch = json.branch;
+ var content = File.ReadAllText(parentDirectory + "/Debug");
+ if (!string.IsNullOrEmpty(content))
+ {
+ var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
+ debugBranch = json.branch;
+ }
}
}
}
--
Gitblit v1.8.0