Skip to main content
Fixed formatting on stack trace
Source Link
Richard Seal
  • 20.8k
  • 5
  • 44
  • 79

In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine.

Stack trace:

[NullReferenceException: Object reference not set to an instance of an object.] Cognifide.PowerShell.Core.Settings.<>c__DisplayClass88_0.b__0(ItemEditArgs p) +402 Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688 Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252 Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199


[NullReferenceException: Object reference not set to an instance of an object.]
   Cognifide.PowerShell.Core.Settings.c__DisplayClass88_0.b__0(ItemEditArgs p) +402
   Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688
   Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277
   Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793
   Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252
   Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199

In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine.

Stack trace:

[NullReferenceException: Object reference not set to an instance of an object.] Cognifide.PowerShell.Core.Settings.<>c__DisplayClass88_0.b__0(ItemEditArgs p) +402 Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688 Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252 Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199

In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine.

Stack trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Cognifide.PowerShell.Core.Settings.c__DisplayClass88_0.b__0(ItemEditArgs p) +402
   Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688
   Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277
   Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793
   Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252
   Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199
edited tags
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117
Source Link

SPE Object reference not set to an instance of an object

In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine.

Stack trace:

[NullReferenceException: Object reference not set to an instance of an object.] Cognifide.PowerShell.Core.Settings.<>c__DisplayClass88_0.b__0(ItemEditArgs p) +402 Cognifide.PowerShell.Core.Extensions.ItemExtensions.Edit(Item item, Action`1 action) +688 Cognifide.PowerShell.Core.Settings.ApplicationSettings.Save() +277 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, ScriptSession scriptSession, Boolean autoDispose, Boolean debug) +1793 Cognifide.PowerShell.Client.Applications.PowerShellIse.JobExecuteScript(ClientPipelineArgs args, String scriptToExecute, Boolean debug) +1252 Cognifide.PowerShell.Client.Applications.PowerShellIse.Debug(ClientPipelineArgs args) +199