This project is read-only.

Object reference not set to an instance of an object

Sep 21, 2011 at 4:29 PM

If you fail to select a PsSnapin on the main screen before clicking "New Help File", you will get an null reference exception.


Sep 21, 2011 at 4:52 PM

Looks like you had the code in there already commented out?

I updated my local copy on line 541 in the HeaderControl.cs file to read

if ( HelpEditorOS.MainWindow.selectedModule == null ||
(MainWindow.MainGrid1.PsSnapinList.Items.Count == 0) ||
(MainWindow.MainGrid1.PsSnapinList.SelectedItems.Count == 0))


Sep 21, 2011 at 5:27 PM

I updated it to

if ( HelpEditorOS.MainWindow.selectedModule.Name == null)