Project

General

Profile

« Previous | Next » 

Revision 4497

Added by daigle about 16 years ago

Add check for null access control list

View differences:

src/edu/ucsb/nceas/metacat/AccessControlList.java
158 158
		// Initialize the parse
159 159
		XMLReader parser = initializeParser();
160 160
		// parse the access file and write the info to xml_access
161
		parser.parse(new InputSource(new StringReader(acl)));
161
		if (acl != null) {
162
			parser.parse(new InputSource(new StringReader(acl)));
163
		} else {
164
			throw new McdbException("Could not retrieve access control list for:  " + aclid + sep + rev);
165
		}
162 166
	}
163 167

  
164 168
// NOT USED

Also available in: Unified diff