Skip to content

Commit df8d64f

Browse files
author
Glenn Snyder
committed
handling null object
1 parent 6376f6b commit df8d64f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

blackduck/HubRestApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def get_tags_url(self, component_or_project):
208208

209209
def get_link(self, bd_rest_obj, link_name):
210210
# returns the URL for the link_name OR None
211-
if '_meta' in bd_rest_obj and 'links' in bd_rest_obj['_meta']:
211+
if bd_rest_obj and '_meta' in bd_rest_obj and 'links' in bd_rest_obj['_meta']:
212212
for link_obj in bd_rest_obj['_meta']['links']:
213213
if 'rel' in link_obj and link_obj['rel'] == link_name:
214214
return link_obj.get('href', None)

blackduck/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 0, 37)
1+
VERSION = (0, 0, 38)
22

33
__version__ = '.'.join(map(str, VERSION))

0 commit comments

Comments
 (0)