Ignore:
Timestamp:
May 9, 2013, 12:37:17 PM (12 years ago)
Author:
s10k
Message:

xmlTools: 0.8f nows checks for empty strings and null string to avoid problems like the one fixed on 0.8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xmlTools/trunk/posUpdate/ParametersParser.cs

    r861 r867  
    107107            foreach (string currentFile in filesToProcess)
    108108            {
    109                 if (valPositions != null)
     109                if (!String.IsNullOrEmpty(valPositions))
    110110                {
    111111                    myTools.replaceAll(currentFile, value, valPositions);
     
    130130            XmlPatch myPatch;
    131131
    132             if (forceInFiles != "")
     132            if (!String.IsNullOrEmpty(forceInFiles))
    133133            {
    134134                myPatch = new XmlPatch(globalFileName, forceInFiles, globalNoBackups);
     
    196196            List<String> filesToProccess = new List<String>();
    197197
    198             if (filename == "") // No filename? Process everything xml file found.
     198            if (String.IsNullOrEmpty(filename)) // No filename? Process everything xml file found.
    199199            {
    200200                List<string> allXmlFiles = Util.getAllXmlFiles();
Note: See TracChangeset for help on using the changeset viewer.