Revision 6ef37eeb

b/trunk/Pithos.Core/Agents/SnapshotDifferencer.cs
77 77
            /// </summary>
78 78
            public readonly Lazy<IEnumerable<ObjectInfo>> Common;
79 79

  
80
            private readonly static ObjectInfo[] Empty = new ObjectInfo[0];
81

  
80 82
            public State(ObjectInfo[] previous, ObjectInfo[] current)
81 83
            {
82
                Previous = previous ?? new ObjectInfo[0];
83
                Current = current ?? new ObjectInfo[0];
84
                Previous = previous ?? Empty;
85
                Current = current ?? Empty;
84 86

  
85 87
                Common=new Lazy<IEnumerable<ObjectInfo>>(() =>
86 88
                    Current.Join(Previous,
......
107 109
        /// Default constructor. Initializes the Current and Previous listings to empty lists
108 110
        /// </summary>
109 111
        public SnapshotDifferencer()
110
        {
111
            var empty = new ObjectInfo[0];            
112
            _state = new State(empty, empty);
112
        {                        
113
            _state = new State(null, null);
113 114
        }
114 115

  
115 116
        /// <summary>

Also available in: Unified diff