Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

heat crashes during harvesting dll files #4331

Closed
wixbot opened this Issue Feb 28, 2014 · 4 comments

Comments

Projects
None yet
2 participants
Collaborator

wixbot commented Feb 28, 2014

Heat crashes during harvesting several dll files. The files provide COM servers implemented with ATL including selfregister functionality. The files are compiled with Visual Studio 2008.

Heat throws a NullReferenceException with the following output (message text is german):

heat.exe : error HEAT0001 : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Exception Type: System.NullReferenceException

Stack Trace:
   bei Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalizeHarvesterMutator.MutateComponents()
   bei Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalizeHarvesterMutator.Mutate(Wix wix)
   bei Microsoft.Tools.WindowsInstallerXml.Mutator.Mutate(Wix wix)
   bei Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(String[] args)

Unbehandelte Ausnahme: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalizeHarvesterMutator.MutateComponents()
   bei Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalizeHarvesterMutator.Mutate(Wix wix)
   bei Microsoft.Tools.WindowsInstallerXml.Mutator.Mutate(Wix wix)
   bei Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(String[] args)
   bei Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Main(String[] args)

The problem is located in file "src\ext\UtilExtension\wixext\UtilFinalizeHarvesterMutator.cs" inline 269:
string[] parts = registryValue.Key.Split('\\');

The following change works for me:
string[] parts = registryValue.Key != null ? registryValue.Key.Split('\\') : new string[0];

Originally opened by tne

Collaborator

wixbot commented Feb 28, 2014

Which version of WiX are you using?

Originally posted by barnson

Collaborator

wixbot commented Feb 28, 2014

I use version 3.8.1128.0.

Originally posted by tne

Collaborator

wixbot commented Mar 13, 2014

AssignedTo set to bobarnson
Release changed from v3.8 to v3.9

Collaborator

wixbot commented Mar 14, 2014

Fixed in wixtoolset/wix3#1

Originally posted by barnson
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added bug heat labels Dec 20, 2015

@wixbot wixbot added this to the v3.9 milestone Dec 20, 2015

@wixbot wixbot closed this Dec 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment