Skip to content

Commit

Permalink
fix error when calling File.exists? with nil
Browse files Browse the repository at this point in the history
  • Loading branch information
radditude committed May 7, 2019
1 parent 6b0127a commit 188e10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pdf_generator_path_agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ defmodule PdfGenerator.PathAgent do
- :raise_on_missing_binaries -> raises on eiter binary missing
"""
def raise_or_continue(options) do
wkhtml_exists = File.exists?(options[:wkhtml_path])
chrome_exists = File.exists?(options[:chrome_path])
wkhtml_exists = File.exists?(options[:wkhtml_path] || "")
chrome_exists = File.exists?(options[:chrome_path] || "")

raise_on_wkhtml_missing = options[:raise_on_missing_wkhtmltopdf_binary]
raise_on_chrome_missing = options[:raise_on_missing_chrome_binary]
Expand Down

0 comments on commit 188e10d

Please sign in to comment.