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
Solution build output appends 'Object reference not set to an instance of an object. MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()' #61
Comments
Same problem here. The last release was not so stable IMHO. |
As a workaround, select a project or source file in the Solution Explorer. Having the solution, or a project or a solution folder as the highlighted item seems to cause this exception. |
I was able to reproduce just now (after updating to most recent version) the issue by highlighting an unloaded Project file. It seems to work fine with other loaded projects. |
Still happening with me on normal loaded projects but it isn't a real problem. |
Ok, I have Visual Studio 2013 Ultimate and the Web Essentials 2013, and I have this error every time I do a compilation in any language, even C++ compilation. |
+Slaks, no it's still not fixed. I am able to reproduce this issue at will with the latest. |
After building a solution with WebEssentials enabled I get the following (benign) output;
========== Rebuild All: 10 succeeded, 0 failed, 0 skipped ==========
30/08/2013 14:19:08: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
30/08/2013 14:19:08: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
I'm not that good with GitHub so I thought I'd describe where I think the problem is, at least there is one there, not sure if it is the same one.
File: https://github.com/madskristensen/WebEssentials2013/blob/92f23d4bb731811d00daa1f2b399a29de7204c64/EditorExtensions/Helpers/ProjectHelpers.cs
Replace line 22;
Project activeProject = null;
with
Project project = GetActiveProject();
and follow that up with;
if (project == null)
return string.Empty;
I suspect it is failing on line 35 where the active project has not been checked for null.
return activeProject.Properties.Item("FullPath").Value.ToString();
The text was updated successfully, but these errors were encountered: