AbstractChangeNotes: mark readRef @Nullable

Change-Id: I37f156cda6fcc01e042811a714b24eef0aac39db
This commit is contained in:
Han-Wen Nienhuys
2019-09-02 11:30:25 +02:00
parent db3146bdaa
commit dfa596adac

View File

@@ -153,6 +153,7 @@ public abstract class AbstractChangeNotes<T> {
return self();
}
@Nullable
protected ObjectId readRef(Repository repo) throws IOException {
Ref ref = repo.getRefDatabase().exactRef(getRefName());
return ref != null ? ref.getObjectId() : null;