
The debug log was dereferencing the commit variable without first checking for being null. Previous dereferences of commit were guarded by a null check. Add a call to checkNotNull to assert that it's not null, and remove the now-redundanty null check. Also adjust the scope of try-catch to only include the statements that can actually throw. Change-Id: I0c602669d0e1f8e7a5d344780d9a82b183cd7e6c