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

GetEntryAssembly can return null, leading to NullReferenceException #1231

Closed
asbjornu opened this issue Sep 16, 2016 · 1 comment
Closed
Labels
Milestone

Comments

@asbjornu
Copy link
Contributor

When Cake.Common.Tools.Cake. CakeRunner is initialized, it has a private static readonly field called _executingAssemblyToolPaths that is set to System.Reflection.Assembly.GetEntryAssembly().Location. Since GetEntryAssembly() can return null, this can fail quite horribly.

@devlead
Copy link
Member

devlead commented Oct 18, 2016

This is fixed by #1141

@devlead devlead closed this as completed Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants