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

If any of Extensions.GenericEntities, MIMETypes, or Verbs are set, all must be set #1732

Open
fredemmott opened this issue Jan 20, 2025 · 2 comments

Comments

@fredemmott
Copy link

Otherwise wixsharp crashes, e.g.:

Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at WixSharp.Extensions.ForEach[T](IEnumerable`1 collection, Action`1 action)
   at WixSharp.Extension.Process(ProcessingContext context)
   at WixSharp.ProgId.<>c__DisplayClass11_0.<Process>b__0(Extension ext)
   at WixSharp.Extensions.ForEach[T](IEnumerable`1 collection, Action`1 action)
   at WixSharp.ProgId.Process(ProcessingContext context)
   at WixSharp.ProgId.<>c__DisplayClass11_0.<Process>b__1(ProgId progId)
   at WixSharp.Extensions.ForEach[T](IEnumerable`1 collection, Action`1 action)
   at WixSharp.ProgId.Process(ProcessingContext context)
oleg-shilo added a commit that referenced this issue Jan 22, 2025
@oleg-shilo
Copy link
Owner

Indeed it is a defect.
Corrected.
Will be available in the very next release.

In the meantime please initialize the see three collections explicitly as you probably do already.

@oleg-shilo
Copy link
Owner

Done. Please update to v2.4.4

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