{"action":"created","issue":{"url":"https://api.github.com/repos/kamsar/Unicorn/issues/49","labels_url":"https://api.github.com/repos/kamsar/Unicorn/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/kamsar/Unicorn/issues/49/comments","events_url":"https://api.github.com/repos/kamsar/Unicorn/issues/49/events","html_url":"https://github.com/kamsar/Unicorn/issues/49","id":104230310,"number":49,"title":"NullReferenceException in VersionedFieldIsChanged method","user":{"login":"BerserkerDotNet","id":1640125,"avatar_url":"https://avatars.githubusercontent.com/u/1640125?v=3","gravatar_id":"","url":"https://api.github.com/users/BerserkerDotNet","html_url":"https://github.com/BerserkerDotNet","followers_url":"https://api.github.com/users/BerserkerDotNet/followers","following_url":"https://api.github.com/users/BerserkerDotNet/following{/other_user}","gists_url":"https://api.github.com/users/BerserkerDotNet/gists{/gist_id}","starred_url":"https://api.github.com/users/BerserkerDotNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerserkerDotNet/subscriptions","organizations_url":"https://api.github.com/users/BerserkerDotNet/orgs","repos_url":"https://api.github.com/users/BerserkerDotNet/repos","events_url":"https://api.github.com/users/BerserkerDotNet/events{/privacy}","received_events_url":"https://api.github.com/users/BerserkerDotNet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T09:55:18Z","updated_at":"2015-09-03T14:27:30Z","closed_at":"2015-09-03T14:05:35Z","body":"Hi Kam,\r\n\r\nI got a NullReferenceException while synchronizing items.\r\nException:\r\n```C#\r\n[U] master:/sitecore/templates/System/Language (f68f13a6-3395-426a-b9a1-fa2dc60d94eb)\r\nERROR: Object reference not set to an instance of an object. (System.NullReferenceException)\r\nat Unicorn.Evaluators.DefaultSerializedAsMasterEvaluatorLogger.VersionedFieldIsChanged(IItemData serializedItemData, IItemVersion version, Guid fieldId, String serializedValue, String sourceValue) \r\nat Unicorn.Evaluators.SerializedAsMasterEvaluator.<>c__DisplayClass12.b__6(ISerializedAsMasterEvaluatorLogger log) \r\nat Unicorn.Logging.DeferredLogWriter`1.ExecuteDeferredActions(TLog log) \r\nat Unicorn.Evaluators.SerializedAsMasterEvaluator.EvaluateUpdate(IItemData sourceItem, IItemData targetItem) \r\nat Unicorn.Loader.SerializationLoader.DoLoadItem(IItemData serializedItemData, IConsistencyChecker consistencyChecker) \r\nat Unicorn.Loader.SerializationLoader.LoadTree(IItemData rootItemData, IDeserializeFailureRetryer retryer, IConsistencyChecker consistencyChecker) \r\nat Unicorn.Loader.SerializationLoader.LoadAll(IItemData[] rootItemsData, IDeserializeFailureRetryer retryer, IConsistencyChecker consistencyChecker, Action`1 rootLoadedCallback) \r\nat Unicorn.SerializationHelper.SyncTree(IConfiguration configuration, Action`1 rootLoadedCallback, IItemData[] roots) \r\nat Unicorn.ControlPanel.SyncConsole.Process(IProgressStatus progress)\r\n```\r\n\r\nWhat I did is I simply updated project on my local machine it went fine, no errors.\r\nWhen I pushed my changes to a dev server it failed to \"Sync\" items with this error.\r\nI made a clean \"Serialization\" on dev, and turns out that there is only one difference in failing files:\r\n![sc_lang_diff](https://cloud.githubusercontent.com/assets/1640125/9601101/0cd64e1c-50a8-11e5-9a02-d1b522e0ed49.png)\r\n\r\nThis issue appears not only in Language item it appears in other items not created by me (Sitecore items).\r\nFrom the de-compiler I can see that there are not a lot of places for NullRef, \r\n![possible_errors](https://cloud.githubusercontent.com/assets/1640125/9601178/98e31cf0-50a8-11e5-899f-f761fe61ec00.png)\r\n\r\nPlease let me know if you need more info.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/kamsar/Unicorn/issues/comments/137465845","html_url":"https://github.com/kamsar/Unicorn/issues/49#issuecomment-137465845","issue_url":"https://api.github.com/repos/kamsar/Unicorn/issues/49","id":137465845,"user":{"login":"kamsar","id":103677,"avatar_url":"https://avatars.githubusercontent.com/u/103677?v=3","gravatar_id":"","url":"https://api.github.com/users/kamsar","html_url":"https://github.com/kamsar","followers_url":"https://api.github.com/users/kamsar/followers","following_url":"https://api.github.com/users/kamsar/following{/other_user}","gists_url":"https://api.github.com/users/kamsar/gists{/gist_id}","starred_url":"https://api.github.com/users/kamsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamsar/subscriptions","organizations_url":"https://api.github.com/users/kamsar/orgs","repos_url":"https://api.github.com/users/kamsar/repos","events_url":"https://api.github.com/users/kamsar/events{/privacy}","received_events_url":"https://api.github.com/users/kamsar/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T14:27:30Z","updated_at":"2015-09-03T14:27:30Z","body":"This is fixed in 3.0b5"}}