diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2015-12-07 11:41:49 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2015-12-07 11:41:49 -0500 |
commit | 9bd74b7f25b45b253f46025d7300a17df58d213f (patch) | |
tree | ec0c11e6e6e0d6e48c81e6a7d4ff408b7070c4eb /objectivec/Tests/GPBCodedInputStreamTests.m | |
parent | b1b9c254e2d1c7929f8072b82a7a0fb415ba3b75 (diff) | |
parent | c27833b6321e8c05611d659cb4bb9f60f82529a4 (diff) | |
download | protobuf-9bd74b7f25b45b253f46025d7300a17df58d213f.tar.gz protobuf-9bd74b7f25b45b253f46025d7300a17df58d213f.tar.bz2 protobuf-9bd74b7f25b45b253f46025d7300a17df58d213f.zip |
Merge pull request #1027 from thomasvl/more_nullable_support
Enable CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION for the projects.
Diffstat (limited to 'objectivec/Tests/GPBCodedInputStreamTests.m')
-rw-r--r-- | objectivec/Tests/GPBCodedInputStreamTests.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/objectivec/Tests/GPBCodedInputStreamTests.m b/objectivec/Tests/GPBCodedInputStreamTests.m index 579fe65c..7c3c006b 100644 --- a/objectivec/Tests/GPBCodedInputStreamTests.m +++ b/objectivec/Tests/GPBCodedInputStreamTests.m @@ -225,8 +225,10 @@ // Serialize and parse it. Make sure to parse from an InputStream, not // directly from a ByteString, so that CodedInputStream uses buffered // reading. + NSData *messageData = message.data; + XCTAssertNotNil(messageData); GPBCodedInputStream* stream = - [GPBCodedInputStream streamWithData:message.data]; + [GPBCodedInputStream streamWithData:messageData]; TestAllTypes* message2 = [TestAllTypes parseFromCodedInputStream:stream extensionRegistry:nil error:NULL]; |