Skip to content

Commit 6dad61b

Browse files
malandpythonicrubyist
authored andcommitted
nil case handling (#79)
1 parent 1a5c990 commit 6dad61b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/creek/drawing.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def load_images_pathnames_by_cells
8383
col_to_selector = 'xdr:to/xdr:col'.freeze
8484

8585
@drawings.xpath('//xdr:twoCellAnchor').each do |drawing|
86-
embed = drawing.xpath(image_selector).first.attributes['embed']
86+
# embed = drawing.xpath(image_selector).first.attributes['embed']
87+
temp = drawing.xpath(image_selector).first
88+
embed = temp.attributes['embed'] if temp
8789
next if embed.nil?
8890

8991
rid = embed.value

0 commit comments

Comments
 (0)