Changeset 24522

Show
Ignore:
Timestamp:
31.08.2011 13:55:41 (8 years ago)
Author:
sjm84
Message:

Fixing a potential error

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r24509 r24522  
    281281    protected Node modifyNodesByTagRecursive(Node parent, String tag) 
    282282    { 
    283         if (parent.getNodeType() == Node.ELEMENT_NODE && ((Element) parent).getTagName().equals(tag)) 
     283        if (parent == null || (parent.getNodeType() == Node.ELEMENT_NODE && ((Element) parent).getTagName().equals(tag))) 
    284284        { 
    285285            return parent;