Merge pull request #188 from coreos-inc/npefix

NPE fix
This commit is contained in:
Jimmy Zelinskie 2015-06-28 12:25:06 -04:00
commit 4ec2143d47

View file

@ -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: