Changeset 25089

Show
Ignore:
Timestamp:
15.02.2012 14:56:32 (8 years ago)
Author:
sjm84
Message:

A fix to a common null pointer exception

Files:
1 modified

Legend:

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

    r24993 r25089  
    268268        } 
    269269 
    270         mainResult.appendChild(this.doc.importNode(result, true)); 
     270        if(result != null) 
     271        { 
     272            mainResult.appendChild(this.doc.importNode(result, true)); 
     273        } 
    271274      } else { 
    272275        // The message needs to go to another module. The same message can