You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran Static analysis on my project and saw some collateral information that I thought I'd pass on.
I realize this is older code but probably still applies.
OHHTTPStubs/OHHTTPStubs/Sources/OHHTTPStubs.m:46:1: Property of mutable type 'NSMutableArray' has 'copy' attribute; an immutable object will be stored instead
Memory error Group
OHHTTPStubs/OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m:44:9: nil returned from a method that is expected to return a non-null value
OHHTTPStubs/OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m:103:9: nil returned from a method that is expected to return a non-null value
OHHTTPStubs/OHHTTPStubs/Sources/OHHTTPStubsResponse.m:153:12: nil passed to a callee that requires a non-null 1st parameter
New Issue Checklist
[NO ] I have tried with the latest version of OHHTTPStubs
[ N/A] I have read the OHHTTPStubs wiki to see if there wasn't a detailed page talking about my issue
Environment
version of OHHTTPStubs: [LIB VERSION HERE]
integration method you are using:
Cocoapods
Carthage
submodule
[X ] other (*Built into our Project from sources)
version of the tool you use: [5.1.0]
There is no ill issue seen with OHTTPStubs. This is just FYI in case you wish to investigate.
I realize this is an older version. I can't update and try again.
The text was updated successfully, but these errors were encountered:
+1 I just ran static analysis and saw the first one, OHTTPStubs.m:46. Defining a property of type NSMutableArray as copy won’t do what you expect, and could lead to a crash. It’s not right now, but only because no one is doing self.stubDescriptors = someMutableArray.
Ran Static analysis on my project and saw some collateral information that I thought I'd pass on.
I realize this is older code but probably still applies.
Memory error Group
OHHTTPStubs/OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m:44:9: nil returned from a method that is expected to return a non-null value
OHHTTPStubs/OHHTTPStubs/Sources/Mocktail/OHHTTPStubs+Mocktail.m:103:9: nil returned from a method that is expected to return a non-null value
OHHTTPStubs/OHHTTPStubs/Sources/OHHTTPStubsResponse.m:153:12: nil passed to a callee that requires a non-null 1st parameter
New Issue Checklist
OHHTTPStubs
for your project sectionEnvironment
There is no ill issue seen with OHTTPStubs. This is just FYI in case you wish to investigate.
I realize this is an older version. I can't update and try again.
The text was updated successfully, but these errors were encountered: