-
Notifications
You must be signed in to change notification settings - Fork 93
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
[Feature] Ignore invalid PREF parameter #76
Comments
The code should have been checking for invalid PREF values, but it was not. Fixed in 157d5ca |
Hello, The problem still occurs when parsing VCards. You can use this test:
|
This is expected behavior. The vCard is parsed without error. Upon calling I guess this should be documented in the Javadocs of |
I see. I was just confused because of the runtime exception – maybe a checked |
I wanted to use an unchecked exception because checked exceptions can clutter your code if overused. I'd also rather not create a new exception class to avoid cluttering the code base. 🤔 |
There are some clients/servers which generate invalid VCard4 PREF parameters like this:
In this case, ez-vcard throws an
IllegalStateException
, making the whole VCard unusable:Would it be possible to ignore such errors, and continue to parse the VCard while ignoring the invalid
PREF
value? Maybe with an extra setting?The text was updated successfully, but these errors were encountered: