Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Closed

heat crashes during harvesting dll files #4331

wixbot opened this issue Feb 28, 2014 · 4 comments
Assignees
Milestone

Comments

@wixbot
Copy link

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

@wixbot
Copy link
Author

wixbot commented Feb 28, 2014

Which version of WiX are you using?

Originally posted by barnson

@wixbot
Copy link
Author

wixbot commented Feb 28, 2014

I use version 3.8.1128.0.

Originally posted by tne

@wixbot
Copy link
Author

wixbot commented Mar 13, 2014

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

@wixbot
Copy link
Author

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 this to the v3.9 milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants