Skip to content

Commit

Permalink
BundlerMinifierPackage Options null check for Vsix
Browse files Browse the repository at this point in the history
  • Loading branch information
rockstardev committed Sep 12, 2019
1 parent 70df873 commit 92ad364
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/BundlerMinifierVsix/BundleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ public static bool IsOutputProduced(string configFile)
return !lines.Any(l => l.TrimStart().StartsWith("produceoutput=false", StringComparison.OrdinalIgnoreCase));
}

return BundlerMinifierPackage.Options.ProduceOutput;
if (BundlerMinifierPackage.Options != null)
return BundlerMinifierPackage.Options.ProduceOutput;
else
return false;
}

public static void ToggleOutputProduction(string configFile, bool produceOutput)
Expand Down

0 comments on commit 92ad364

Please sign in to comment.