From 2574aa187db49d4cdd053e00c226adf6ede0e832 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 29 May 2019 23:22:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(#IX75C):=20=E4=BF=AE=E5=A4=8DGiteeControlle?= =?UTF-8?q?r=E5=86=85=E9=83=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment comment #IX75C 相关提交 commit:1cfbf639a27c623204b9517d9d5da7a7ae601d93 #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=IX75C --- Bootstrap.Admin/Controllers/Api/GiteeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Controllers/Api/GiteeController.cs b/Bootstrap.Admin/Controllers/Api/GiteeController.cs index 56b4854e..c8f471a5 100644 --- a/Bootstrap.Admin/Controllers/Api/GiteeController.cs +++ b/Bootstrap.Admin/Controllers/Api/GiteeController.cs @@ -90,7 +90,7 @@ namespace Bootstrap.Admin.Controllers.Api { var client = httpClientFactory.CreateClient(); var content = await GetJsonAsync(() => client.GetAsJsonAsync($"https://ci.appveyor.com/api/projects/{userName}/{projName}/branch/{branchName}")); - return new JsonResult(new { schemaVersion = 1, label, message = content.Build.Version, color }); + return new JsonResult(new { schemaVersion = 1, label, message = content == null ? "unknown" : content.Build.Version, color }); } private async static Task GetJsonAsync(Func> callback)