Fix small NPE in BB trigger code

This commit is contained in:
Joseph Schorr 2015-08-13 12:28:48 -04:00
parent 6a41159475
commit 17d3bed835

View file

@ -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()