Skip to content

Commit

Permalink
Update header.rb (#21)
Browse files Browse the repository at this point in the history
Fix nil exception when no comments in the file
  • Loading branch information
mallowigi authored and arashm committed Sep 5, 2017
1 parent cc96bba commit 4b6ad16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/poparser/header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Header

def initialize(entry)
@entry = entry
@comments = entry.translator_comment.value
@comments = entry.translator_comment.value unless entry.translator_comment.nil?
@original_configs = convert_msgstr_to_hash(entry.msgstr)
@flag = entry.flag

Expand Down

0 comments on commit 4b6ad16

Please sign in to comment.