From 5e39040ec8cde328a9ae37b42c002c61c9b12e76 Mon Sep 17 00:00:00 2001
From: Austin Anderson <angerson@google.com>
Date: Tue, 22 Aug 2023 16:34:15 -0700
Subject: [PATCH] Fix maybe-null check

---
 tf_oss_dashboard/dashboard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tf_oss_dashboard/dashboard.py b/tf_oss_dashboard/dashboard.py
index d49865d..3b76651 100755
--- a/tf_oss_dashboard/dashboard.py
+++ b/tf_oss_dashboard/dashboard.py
@@ -100,7 +100,7 @@ for commit in JSON_DATA["data"]["repository"]["ref"]["target"]["history"]["nodes
         clone["type"] = "status check"
         clone["state"] = check["state"]
         clone["result_url"] = check["targetUrl"]
-        clone["is_public"] = not check["targetUrl"].startswith(tuple(YAML_CONFIG["internal_startswith"]))
+        clone["is_public"] = not (check["targetUrl"] or "").startswith(tuple(YAML_CONFIG["internal_startswith"]))
     # GitHub Actions jobs are all other kinds of jobs.
     else:
       # Some GitHub Actions results don't have a workflow group name, so we
-- 
GitLab