Revision 7215
Added by Chris Jones over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
296 | 296 |
AccessPolicy accessPolicy = IdentifierManager.getInstance().getAccessPolicy(guid); |
297 | 297 |
try { |
298 | 298 |
List<AccessRule> allowList = accessPolicy.getAllowList(); |
299 |
int listSize = allowList.size(); |
|
299 | 300 |
sysMeta.setAccessPolicy(accessPolicy); |
300 | 301 |
|
301 | 302 |
} catch (NullPointerException npe) { |
Also available in: Unified diff
Also get the list size, which may throw an NPE.