Merge branch 'stable-2.12'
* stable-2.12: SubmoduleSubscriptionsIT: Add config with 'submit whole topic' enabled Fix putTopic hook firing SubmoduleSubscriptionsIT: Annotate with @NoHttpd Change.Id: Avoid NumberFormatException on empty user edit ref RelatedChanges: Show "Submitted Together" also for changes with topic Set version to 2.11.9 Release notes for Gerrit 2.11.9 Fix duplicate links in document Fix example for "Set Diff Preferences" in REST API documentation Change-Id: I74f4e85dda55addfc760fee037b494781b94e3ff
This commit is contained in:
@@ -160,7 +160,10 @@ public final class Change {
|
||||
RefNames.EDIT_PREFIX.length();
|
||||
int endChangeId = nextNonDigit(ref, startChangeId);
|
||||
String id = ref.substring(startChangeId, endChangeId);
|
||||
return new Change.Id(Integer.parseInt(id));
|
||||
if (id != null && !id.isEmpty()) {
|
||||
return new Change.Id(Integer.parseInt(id));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Id fromRefPart(String ref) {
|
||||
|
||||
Reference in New Issue
Block a user