Fix NPE in BitBucket V2 handling code
This commit is contained in:
parent
fee8bf8607
commit
f6311b09fe
1 changed files with 1 additions and 1 deletions
|
@ -517,7 +517,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
|||
}
|
||||
|
||||
# Add the commit's author.
|
||||
if target.get('author') and 'user' in target['author']:
|
||||
if target is not None and target.get('author') and 'user' in target['author']:
|
||||
commit_info['author'] = _build_user_block(target['author']['user'])
|
||||
elif data.get('raw_author'):
|
||||
# Try to lookup the author by email address. The raw_author field (if it exists) is returned
|
||||
|
|
Reference in a new issue