Fix small NPE in BB trigger code
This commit is contained in:
parent
6a41159475
commit
17d3bed835
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
|||
|
||||
def handle_trigger_request(self, request):
|
||||
payload = request.get_json()
|
||||
if not 'push' in payload:
|
||||
if not payload or not 'push' in payload:
|
||||
logger.debug('Skipping BitBucket request due to missing push data in payload')
|
||||
raise SkipRequestException()
|
||||
|
||||
|
|
Reference in a new issue