Changeset 9995


Ignore:
Timestamp:
2005-06-01T14:10:29+12:00 (19 years ago)
Author:
kjdon
Message:

small changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Index.java

    r9700 r9995  
    7070    // Create a new element
    7171    Document document = CollectionDesignManager.collect_config.document;
    72     element = document.createElement(CollectionConfiguration.INDEX_ELEMENT);
     72    this.element = document.createElement(CollectionConfiguration.INDEX_ELEMENT);
    7373    // For each source add a content element
    7474    int size = sources.size();
     
    140140     */
    141141    public int getLevel() {
    142     if(level == -1) {
     142    if(level == -1 && element != null) {
    143143        String level_str = element.getAttribute(CollectionConfiguration.LEVEL_ATTRIBUTE);
    144144        for(int i = 0; level == -1 && i < LEVEL.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.