Skip to content

Commit

Permalink
fixed issue with the empty file path for the default viewer handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhabjan committed Jul 30, 2014
1 parent 7ac95b8 commit c6d2417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ghostscript.NET/Viewer/GhostscriptViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private void Open()
{
string extension = Path.GetExtension(_filePath).ToLower();

if (string.IsNullOrWhiteSpace(extension))
if (!string.IsNullOrWhiteSpace(_filePath) && string.IsNullOrWhiteSpace(extension))
{
using (FileStream srm = new FileStream(_filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
Expand Down

0 comments on commit c6d2417

Please sign in to comment.