SetNull changes in addEntry
Added Comments
co