n2cms/n2cms — pull request #63 by vkornov (2012-08-20 22:30:41+00:00)
Title: arg null checks on public methods in VersionManager

adding sanity checks that prevent the following weird null ref error:
System.NullReferenceException: Object reference not set to an instance of an object.
at N2.Persistence.VersionManager.SaveVersion(ContentItem item) in C:\Users\Victor\Documents\GitHub\n2cms\src\Framework\N2\Persistence\VersionManager.cs:line 64
at N2.Persistence.VersionManager.ReplaceVersion(ContentItem currentItem, ContentItem replacementItem, Boolean storeCurrentVersion) in C:\Users\Victor\Documents\GitHub\n2cms\src\Framework\N2\Persistence\VersionManager.cs:line 95
at N2.Edit.AutoPublish.PublishScheduledAction.Execute() in C:\Users\Victor\Documents\GitHub\n2cms\src\Mvc\MvcTemplates\N2\Content\AutoPublish\PublishScheduledAction.cs:line 40
at N2.Plugin.Scheduling.Scheduler.<>c__DisplayClass10.b__e() in C:\Users\Victor\Documents\GitHub\n2cms\src\Framework\N2\Plugin\Scheduling\Scheduler.cs:line 108