Admin.XXXPluginUserControl.FillContent(Item item)Null Reference Exception

I’m getting a null reference exception in Admin.XXXPluginUserControl.FillContent(Item item)

The passed in parameter item is null

All I did to the auto generated template in VS was to update the GUIDs for

  • XXXWorkSpaceToolbarPluginId
  • XXXViewItemToolbarPluginId
  • XXXToolsOptionDialogPluginId

and change the ItemNode’s ItemsAllowed to One

If ItemsAllowed is set to One the Management Client assumes that the plugin will handle the Item loading and storage itself and thus it will call FillUserControl with null. The template does not handle this so you will need to update the project yourself in order to handle this situation properly.