Github user eribeiro commented on a diff in the pull request:
https://github.com/apache/zookeeper/pull/279#discussion_r121281455
--- Diff: src/java/main/org/apache/zookeeper/ZooKeeper.java ---
@@ -1436,7 +1436,7 @@ public String create(final String path, byte data[],
List<ACL> acl,
request.setData(data);
request.setFlags(createMode.toFlag());
request.setPath(serverPath);
- if (acl != null && acl.size() == 0) {
+ if (acl == null || acl.size() == 0) {
--- End diff --
Wouldn't be better to account for `null` entries in the `acl` List like
below?
```
if (acl == null || acl.size() == 0 || acl.contains(null)) {
```
The same applies to other changes in this file.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---