Changeset 14970 for trunk/FACT++/scripts


Ignore:
Timestamp:
03/04/13 11:08:17 (12 years ago)
Author:
tbretz
Message:
Make sure that if the fadctrl was newly started there is no crash because the service with the drs runs is empty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/CheckUnderflow.js

    r14763 r14970  
    136136    dim.wait("MCP", "Idle", 3000);
    137137
    138     var nn = runs.data[0]>0 ? runs.data[1].reduce(Func.max) : -1;
     138    var nn = runs.data && runs.data[0]>0 ? runs.data[1].reduce(Func.max) : -1;
    139139    if (nn>0)
    140140    {
Note: See TracChangeset for help on using the changeset viewer.