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

ISE throws NullReferenceException if item "/sitecore/content/home" is not found #378

Closed
pbering opened this Issue Jun 19, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@pbering

pbering commented Jun 19, 2015

... due to shell site has contentStartItem="/Home" by default and that attribute is used in https://github.com/SitecorePowerShell/Console/blob/master/Cognifide.PowerShell/Client/Applications/PowerShellIse.cs without checking for null:

ContextItemId = Context.ContentDatabase.GetItem(Context.Site.ContentStartPath).ID.ToString();

@alan-null alan-null self-assigned this Jun 19, 2015

alan-null pushed a commit that referenced this issue Jun 19, 2015

@alan-null

This comment has been minimized.

Member

alan-null commented Jun 19, 2015

Thanks for detailed report @pbering. Issue fixed.

@alan-null alan-null closed this Jun 19, 2015

@AdamNaj

This comment has been minimized.

Member

AdamNaj commented Jun 19, 2015

Brautifull! Thanks Alan for the quick reaction!

@pbering

This comment has been minimized.

pbering commented Jun 19, 2015

Wow quick 👍

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