Merge "Fix possible NPE in PatchDetailServiceImpl"

This commit is contained in:
Shawn Pearce
2013-08-22 15:49:34 +00:00
committed by Gerrit Code Review

View File

@@ -139,7 +139,7 @@ class PatchDetailServiceImpl extends BaseServiceImplementation implements
}
return changeDetailFactory.create(result.getChangeId()).call();
} catch (NoSuchChangeException e) {
throw new Failure(new NoSuchChangeException(result.getChangeId()));
throw new Failure(new NoSuchChangeException(psid.getParentKey()));
} catch (NoSuchProjectException e) {
throw new Failure(e);
} catch (NoSuchEntityException e) {