Changeset 13117


Ignore:
Timestamp:
03/15/12 09:51:03 (13 years ago)
Author:
tbretz
Message:
gDirectory->GetListOfKeys() can be NULL... fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusArray.cc

    r9580 r13117  
    619619
    620620    // Check if key exists (to suppress an error on the console
     621    if (!gDirectory->GetListOfKeys())
     622    {
     623        gLog << inf << keyname << " [MStatusArray] not found (no open file?)" << endl;
     624        return 0;
     625    }
     626
     627    // Check if key exists (to suppress an error on the console
    621628    if (!gDirectory->GetListOfKeys()->FindObject(keyname))
    622629    {
Note: See TracChangeset for help on using the changeset viewer.