Skip to content

get-help get-process throws System.NullReferenceException #1611

Closed

Description

Steps to reproduce

  1. Get a Ubuntun 14.04 machine
  2. Install PowerShell
  3. Launch PowerShell
  4. Run " get-help get-process"

Expected behavior

Help content for get-process cmdlet

Actual behavior

PS /home/chythu> get-help get-process
get-help : Object reference not set to an instance of an object.
At line:1 char:1

  • get-help get-process
  • - CategoryInfo          : NotSpecified: (:) [Get-Help], NullReferenceException
    - FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.G
      etHelpCommand
    
    

PS /home/chythu> $error[0].exception.stacktrace
at System.Management.Automation.Help.UpdatableHelpSystem.ShouldPromptToUpdateHelp() in /home/andrew/src/PowerShell/src/System.Management.Automation/help/UpdatableHelpSystem.cs:line 1757
at Microsoft.PowerShell.Commands.GetHelpCommand.BeginProcessing() in /home/andrew/src/PowerShell/src/System.Management.Automation/help/HelpCommands.cs:line 324
at System.Management.Automation.Cmdlet.DoBeginProcessing() in /home/andrew/src/PowerShell/src/System.Management.Automation/engine/cmdlet.cs:line 172
at System.Management.Automation.CommandProcessorBase.DoBegin() in /home/andrew/src/PowerShell/src/System.Management.Automation/engine/CommandProcessorBase.cs:line 514

Environment data

PS /home/chythu> $psversiontable

Name Value


PSVersion 5.1.10032.0
PSEdition PowerShellCore
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.7
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Activity

  1. jdhitsolutions commented on Aug 3, 2016

    @jdhitsolutions
    Collaborator

    I saw this as well but thought I saw something that help files hadn't been included for Linux so I didn't think much of it. But this same error also occurs on CentOS 7. And to be clear this applies to getting help for anything.

    Name                           Value
    ----                           -----
    PSVersion                      5.1.10032.0
    PSEdition                      PowerShellCore
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
    BuildVersion                   3.0.0.0
    GitCommitId                    v6.0.0-alpha.7
    CLRVersion
    WSManStackVersion              3.0
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    
  2. added this to the milestone on Aug 4, 2016
  3. modified the milestones: , on Aug 9, 2016
  4. andyleejordan commented on Aug 10, 2016

    @andyleejordan
    Member

    Resolved via #1695.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions