If you use only CreateDictionaryEntry() with a staging object the line that initialized deletes doesn't get called, which means when you call CommitStaged() you get a null reference exception. Moved the initialization line so it will be initialized on both branches.
If you use only CreateDictionaryEntry() with a staging object the line that initialized deletes doesn't get called, which means when you call CommitStaged() you get a null reference exception. Moved the initialization line so it will be initialized on both branches.