Changeset 25466

Show
Ignore:
Timestamp:
24.04.2012 13:19:19 (8 years ago)
Author:
kjdon
Message:

test for null the element we are actually using

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r25426 r25466  
    285285 
    286286        // check whether we are public or not 
    287         if (meta_list != null) 
    288         { 
    289             Element meta_elem = (Element) GSXML.getNamedElement(metadata_list, GSXML.METADATA_ELEM, GSXML.NAME_ATT, "public"); 
     287        if (this.metadata_list != null) 
     288        { 
     289            Element meta_elem = (Element) GSXML.getNamedElement(this.metadata_list, GSXML.METADATA_ELEM, GSXML.NAME_ATT, "public"); 
    290290            if (meta_elem != null) 
    291291            {