EndCommit

fixed final null pointer exception