Changeset 24522


Ignore:
Timestamp:
08/31/11 13:55:41 (10 years ago)
Author:
sjm84
Message:

Fixing a potential error

File:
1 edited

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;
Note: See TracChangeset for help on using the changeset viewer.