Fix for post submit on cirrus (#28963)

* Fix for post submit on cirrus
This commit is contained in:
Dan Field
2019-03-06 14:23:37 -08:00
committed by GitHub
parent 20e0f13cc9
commit e5b1ed7a7f

View File

@@ -422,7 +422,9 @@ String _getCiProviderName() {
int _getPrNumber() {
switch(_getCiProvider()) {
case CiProviders.cirrus:
return int.tryParse(Platform.environment['CIRRUS_PR']);
return Platform.environment['CIRRUS_PR'] == null
? -1
: int.tryParse(Platform.environment['CIRRUS_PR']);
case CiProviders.luci:
return -1; // LUCI doesn't know about this.
}