Ignore:
Timestamp:
07/03/14 11:44:54 (5 years ago)
Author:
mkommend
Message:

#2171: Readded string.IsNullOrEmpty check for the initialization script in the ScilabParameterVectorEvaluator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Scilab/3.3/ScilabParameterVectorEvaluator.cs

    r11076 r11080  
    9292          startedScilab = true;
    9393          scilab = new ScilabConnector(false);
    94           result = scilab.execScilabScript(initializationScript.Value);
    95           if (result != 0) ThrowSciLabException(initializationScript.Value, result);
     94          if (!string.IsNullOrEmpty(initializationScript.Value)) {
     95            result = scilab.execScilabScript(initializationScript.Value);
     96            if (result != 0) ThrowSciLabException(initializationScript.Value, result);
     97          }
    9698        } else if (!startedScilab) {
    9799          throw new InvalidOperationException("Could not run multiple optimization algorithms in parallel.");
Note: See TracChangeset for help on using the changeset viewer.