From cd5cb4b76775139dcc08a0f66376801bf99a1a18 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Sun, 28 Jun 2015 10:44:58 +0300 Subject: [PATCH] NPE fix --- endpoints/trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/trigger.py b/endpoints/trigger.py index a0f945704..725b8aa1c 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -71,7 +71,7 @@ def _determine_build_ref(run_parameters, get_branch_sha, get_tag_sha, default_br kind = '' value = '' - if 'refs' in run_parameters: + if 'refs' in run_parameters and run_parameters['refs']: kind = run_parameters['refs']['kind'] value = run_parameters['refs']['name'] elif 'branch_name' in run_parameters: