Files
gerrit/gerrit-server
David Pursehouse abbd4b2977 SubmitStrategyOp: Avoid potential NPEs in updateChange
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
2016-02-12 17:52:31 +09:00
..