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

NSData is not converted during toJavaObject #59

Closed
ivanseidel opened this issue May 9, 2020 · 1 comment
Closed

NSData is not converted during toJavaObject #59

ivanseidel opened this issue May 9, 2020 · 1 comment
Assignees
Labels

Comments

@ivanseidel
Copy link

While converting a NSDictionary to a Java Object, the type NSData is not handled in deserialisation:

java.lang.IllegalArgumentException: Cannot process NSData
        at com.dd.plist.NSObject.toJavaObject(NSObject.java:319)
        at com.dd.plist.NSObject.deserializeObject(NSObject.java:356)
        at com.dd.plist.NSObject.toJavaObject(NSObject.java:316)
        at com.dd.plist.NSObject.toJavaObject(NSObject.java:184)

It seems that the NSObject.toJavaObject does not handles NSData case. Is this intended beharvior or is this case missing?

Library Version: 1.23

@3breadt
Copy link
Owner

3breadt commented May 19, 2020

Thanks for reporting this issue. It only affect the generic toJavaObject, the other overlord worked fine. I fixed the issue in commit #73db2c2. Hope that helps.

@3breadt 3breadt closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants