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

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

Closed
pbering opened this issue Jun 19, 2015 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@pbering
Copy link

@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
Copy link
Member

@alan-null alan-null commented Jun 19, 2015

Thanks for detailed report @pbering. Issue fixed.

@alan-null alan-null closed this Jun 19, 2015
@AdamNaj
Copy link
Member

@AdamNaj AdamNaj commented Jun 19, 2015

Brautifull! Thanks Alan for the quick reaction!

@pbering
Copy link
Author

@pbering 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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants