Improve string casting of revision info values
Some revision payloads contain git hashes in place of revision number for built-in components (webkit, v8). We should use universal -description instead of NSNumber's -stringValue. See revision #278870 for example.
This commit is contained in:
parent
818a02edbd
commit
2c27526ab5
@ -382,12 +382,12 @@ NSString * const MGMUBCancel = @"Cancel";
|
||||
}
|
||||
- (void)revisionDidFinish:(MGMURLBasicHandler *)theHandler {
|
||||
NSDictionary *revisionInfo = [[theHandler data] parseJSON];
|
||||
NSString *webkit = [[revisionInfo objectForKey:@"webkit_revision"] stringValue];
|
||||
NSString *webkit = [NSString stringWithFormat:@"%@", [revisionInfo objectForKey:@"webkit_revision"]];
|
||||
if (webkit!=nil)
|
||||
[webKitBuildField setStringValue:webkit];
|
||||
else
|
||||
[webKitBuildField setStringValue:@"0"];
|
||||
NSString *v8 = [[revisionInfo objectForKey:@"v8_revision"] stringValue];
|
||||
NSString *v8 = [NSString stringWithFormat:@"%@", [revisionInfo objectForKey:@"v8_revision"]];
|
||||
if (v8!=nil)
|
||||
[v8BuildField setStringValue:v8];
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user