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

Parse <real>nan</real> failed #54

Closed
jianggaocheng opened this issue Nov 6, 2019 · 1 comment
Closed

Parse <real>nan</real> failed #54

jianggaocheng opened this issue Nov 6, 2019 · 1 comment

Comments

@jianggaocheng
Copy link

<dict>
	<key>DownloadPercentComplete</key>
	<real>nan</real>
	<key>IsDownloaded</key>
	<true/>
	<key>ProductKey</key>
	<string>061-21545</string>
	<key>Status</key>
	<string>Idle</string>
</dict>

It is a MDM request from Apple Macbook, when I tried to parse it, an exception throws.

java.lang.IllegalArgumentException: The given string neither represents a double, an int nor a boolean value.
	at com.dd.plist.NSNumber.<init>(NSNumber.java:138)
	at com.dd.plist.XMLPropertyListParser.parseObject(XMLPropertyListParser.java:232)
	at com.dd.plist.XMLPropertyListParser.parseObject(XMLPropertyListParser.java:215)
	at com.dd.plist.XMLPropertyListParser.parseObject(XMLPropertyListParser.java:222)
	at com.dd.plist.XMLPropertyListParser.parseObject(XMLPropertyListParser.java:215)
	at com.dd.plist.XMLPropertyListParser.parse(XMLPropertyListParser.java:193)
	at com.dd.plist.XMLPropertyListParser.parse(XMLPropertyListParser.java:154)
	at com.dd.plist.PropertyListParser.parse(PropertyListParser.java:240)
	at com.dd.plist.PropertyListParser.parse(PropertyListParser.java:217)
@3breadt
Copy link
Owner

3breadt commented Nov 6, 2019

Hi, I have added NaN support in release 1.23, your issue should be fixed.

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

No branches or pull requests

2 participants