Skip to content

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

Closed

Description

@pbering

... 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();

Activity

  1. self-assigned this
    on Jun 19, 2015
  2. added a commit that references this issue on Jun 19, 2015
  3. alan-null commented on Jun 19, 2015

    @alan-null
    Member

    Thanks for detailed report @pbering. Issue fixed.

  4. AdamNaj commented on Jun 19, 2015

    @AdamNaj
    Member

    Brautifull! Thanks Alan for the quick reaction!

  5. pbering commented on Jun 19, 2015

    @pbering
    Author

    Wow quick 👍

  6. modified the milestones: 3.1, 3.2 on Jun 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐞 bugOops! Sorry for the inconvenience.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions