Changeset 11946


Ignore:
Timestamp:
2006-06-20T13:10:05+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a bug causing an infinite loop with a classifier with an empty HList.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r11637 r11946  
    7777    get_info (OIDs, args["c"], args["l"], metadata, false, collectproto, response, logout);
    7878
     79    // Avoid infinite loops in strange situations by checking that the OID has changed
     80    if (response.docInfo[1].OID == OID) {
     81      break;
     82    }
    7983    OID = response.docInfo[1].OID;
    8084    classifytype = response.docInfo[1].metadata["childtype"].values[0];
Note: See TracChangeset for help on using the changeset viewer.