-
Notifications
You must be signed in to change notification settings - Fork 10
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
Returning null instead of empty collection for SCIMAttribute #5
Comments
You have a good point - it’s somewhat burdensome and not very friendly to return null. That said, we are unlikely to change the behavior because we are working on an entirely new SCIM v2 client library. |
@coulbeck out of the context of this issue, what's the state of the v2 client library ? is it going to be public under the same license, and if so, when? Thank you for your great effort ! |
@asaf Currently it's planned to be public under the same license, sometime over summer (northern hemisphere!). Sorry I can't be any more specific right now. |
So can the v2 client library work against PINGFederate? (Which appears to support SCIM v1.1) |
No, the SCIM 2 standard is not backward-compatible with SCIM 1.x hence two different libraries. |
Hi,
I notice that since a commit to fix the null strings, we return null instead of an empty collection. So if I do
group.getMembers()
on a GroupResource, it would be null and I can get a NPE on a foreach statement, e.g.for (Collection<Entry<String>> entry : group.getMembers())
.http://stackoverflow.com/questions/6077909/is-there-a-way-to-avoid-null-check-before-the-for-each-loop-iteration-starts
I can do a null check, but it seems extraneous to do that before a foreach.
The text was updated successfully, but these errors were encountered: