Changeset 14531

Show
Ignore:
Timestamp:
17.09.2007 15:40:00 (12 years ago)
Author:
qq6
Message:

updated docnum2OID(String docnum)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/util/GDBMWrapper.java

    r13270 r14531  
    152152    public String docnum2OID(String docnum) { 
    153153    DBInfo info = getInfo(docnum); 
    154     String oid = info.getInfo("section"); 
    155     return oid; 
     154    if (info!=null){ 
     155        String oid = info.getInfo("section"); 
     156        return oid; 
     157    }else{ 
     158        return null; 
     159    } 
    156160    } 
    157161