Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildPutFile crashes on valid input #80

Closed
jacobkeeler opened this issue Feb 11, 2015 · 0 comments
Closed

buildPutFile crashes on valid input #80

jacobkeeler opened this issue Feb 11, 2015 · 0 comments
Labels
bug A defect in the library

Comments

@jacobkeeler
Copy link

The buildPutFile function in SDLRPCRequestFactory throws an exception when it is given a valid fileType value. The reason for this appears to be this line:

msg.fileType = [fileType mutableCopy];

I would assume that this is just a copy-paste error, but it is impossible to create a mutable copy of an SDLEnum object, as it does not conform to NSMutableCopying. As a result, whenever this line is executed an exception will be thrown.

The line should just be:

msg.fileType = fileType;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

No branches or pull requests

3 participants