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
Assignees
Labels
🐞 bug Oops! Sorry for the inconvenience.
Milestone

Comments

@pbering
Copy link

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 added 🐞 bug Oops! Sorry for the inconvenience. 2 - Working labels Jun 19, 2015
@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

Thanks for detailed report @pbering. Issue fixed.

@AdamNaj
Copy link
Member

AdamNaj commented Jun 19, 2015

Brautifull! Thanks Alan for the quick reaction!

@pbering
Copy link
Author

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
🐞 bug Oops! Sorry for the inconvenience.
Projects
None yet
Development

No branches or pull requests

3 participants