Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 10, 2013, 11:29:44 AM (12 years ago)
Author:
landauf
Message:

some refactoring in OutputManager - for unittests it is sometimes necessary to create a new instance of OutputManager (or a mock), hence we should avoid storing dead references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/output/LogWriter.cc

    r9538 r9540  
    118118
    119119        // request old output from MemoryWriter
    120         OutputManager::getInstance().getMemoryWriter().resendOutput(this);
     120        if (&OutputManager::getInstance().getMemoryWriter())
     121            OutputManager::getInstance().getMemoryWriter().resendOutput(this);
    121122    }
    122123
Note: See TracChangeset for help on using the changeset viewer.