Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

List objects should have an empty list rather than a null list. #183

Open
iocanel opened this issue Dec 30, 2016 · 0 comments
Open

List objects should have an empty list rather than a null list. #183

iocanel opened this issue Dec 30, 2016 · 0 comments

Comments

@iocanel
Copy link
Member

iocanel commented Dec 30, 2016

A recent example:

for (ReplicationController r :  client.replicationControllers().list().getItems()) {
    //do stuff
}

This throws an NPE when there are no controllers.

It would be great if all XXXList classes were initialized using an empty list instead of null.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant