Index: webrtc/api/objc/RTCStatsReport.mm |
diff --git a/webrtc/api/objc/RTCStatsReport.mm b/webrtc/api/objc/RTCStatsReport.mm |
index 35a52290145534431b73c1640233ef24f973c71c..76de95078c1d6b43b16312402f95be5d9988f105 100644 |
--- a/webrtc/api/objc/RTCStatsReport.mm |
+++ b/webrtc/api/objc/RTCStatsReport.mm |
@@ -16,6 +16,8 @@ |
#import "webrtc/base/objc/NSString+StdString.h" |
#import "webrtc/base/objc/RTCLogging.h" |
+// TODO(hjon): Update nullability types. See http://crbug/webrtc/5592 |
+ |
@implementation RTCStatsReport |
@synthesize timestamp = _timestamp; |
@@ -50,9 +52,8 @@ |
valuePair.second->ToString()]; |
// Not expecting duplicate keys. |
- RTC_DCHECK(values[key]); |
- |
- values[key] = value; |
+ RTC_DCHECK(![values objectForKey:key]); |
+ [values setObject:value forKey:key]; |
} |
_values = values; |
} |