Changeset 9995
- Timestamp:
- 2005-06-01T14:10:29+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Index.java
r9700 r9995 70 70 // Create a new element 71 71 Document document = CollectionDesignManager.collect_config.document; 72 element = document.createElement(CollectionConfiguration.INDEX_ELEMENT);72 this.element = document.createElement(CollectionConfiguration.INDEX_ELEMENT); 73 73 // For each source add a content element 74 74 int size = sources.size(); … … 140 140 */ 141 141 public int getLevel() { 142 if(level == -1 ) {142 if(level == -1 && element != null) { 143 143 String level_str = element.getAttribute(CollectionConfiguration.LEVEL_ATTRIBUTE); 144 144 for(int i = 0; level == -1 && i < LEVEL.length; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.