Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #15 from fabiocesarato/master
Browse files Browse the repository at this point in the history
Fix null reference on BIN file load
  • Loading branch information
heaths committed Dec 15, 2015
2 parents 173571d + 18875e4 commit d015eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/VS.ConfigurationManager/Primitives.cs
Original file line number Diff line number Diff line change
Expand Up @@ -865,11 +865,11 @@ private void GetContent(ref ICollection<Bundle> rels, string path)
// Does a PDB exist for the file that we are reading?
var filenamewithoutextension = Path.GetFileNameWithoutExtension(fileitem);

if (releases.Where(x => x.Name == filenamewithoutextension) != null)
if (releases.Where(x => x.Name == filenamewithoutextension).Count() != 0)
{
// Update values to use the file instead
releases.FirstOrDefault(x => x.Name == filenamewithoutextension).FileType = FILETYPE_BIN;
releases.FirstOrDefault(x => x.Name == filenamewithoutextension).binPath = Path.Combine(path, fileitem);
releases.First(x => x.Name == filenamewithoutextension).FileType = FILETYPE_BIN;
releases.First(x => x.Name == filenamewithoutextension).binPath = Path.Combine(path, fileitem);
}
else // If there is no wixpdb does not exist, pull data from the file to populate releases
{
Expand Down

0 comments on commit d015eac

Please sign in to comment.