v2.14.5.1
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAABCgAGBQJZ6H/2AAoJEAw69mSf/CECZa0P/29JkoxXU/cecpsH5bD2Kpb6
vMEL5iCXzxhzDUFV+JSqgQVwXCKkSyr25azli4p6Fnmm5vaRHf/PvbXek/tCPaGr
4D1fKaq4+ZSu35e/E8MxkgLJ8jeSfzJrcvDaUhF0hKnt4cNRy/qmjyy6QfI8cmR8
CcnSycX5lATP47DMbX/9b3f60iP473LRWuYuPbLaHGA7zv3Q+SnaYmdU93/gwovo
r7FWne5wbG6EwbfmdbYVKRJivfQRR2xH7cSGojXnS9UhhiWbBzIzVqw4gtEWOJ09
aBokA+kMzxYithwC5Lg3EHo2Cb0TyT9B3FLXmFS9Y1hn8X5veqzatBx2dIzr5LAg
AX96LBlWt6ba/N01HtgcJw03BMraPBaMWHQUeo/t351FUX3dchHGvNlFdymFbt/g
TydfuJfXiZDGcgBKOTrZXSWSLnPWUuUVWQa1Dfu5LQy+q/Z6MMWnkaD3Vp1ik7ad
+3RVik1kmIRZxQXbbbmyuMly8ZTnzHFmnMUmlGsn6MsAVGoYOtsEPFnrF6yIrdpb
cfmnqqT1RNL4qL84Ngz957TaalLFStHj27qJrIiFRLXz/gyCpXXSkg0aZdAores1
eQ4HMKsySQR3A/R1EnbyAYWLWLtQghVwtvpsgZoSgHFnYTYfYub0XenuPn2nCnj9
BF4j6zQe/kVNFyt5KCFP
=a50M
-----END PGP SIGNATURE-----
RefUpdate: Protect against null ObjectId in ReceiveCommand

RefUpdate's onRefOperation method is invoked by RefOperationValidators
for every registered RefOperationValidationListener.

If one of those listeners passes a RefReceivedEvent that contains an
instance of ReceiveCommand that was initialized with null old or
new ObjectId, this results in a NullPointerException when the ObjectId
is dereferenced to get the name.

Protect against such misbehaving validators by translating any null
instance to ObjectId.zeroId().

Change-Id: Ib9399c2351af20b23f8c4481c7b067f3a4dcb688
1 file changed
tree: ace2312bb26c1effc56371fad9deb70e18ecd3bf
  1. .gitignore
  2. BUILD
  3. LICENSE
  4. src/