Author: timotei
Date: Sat Jul 30 09:54:50 2011
New Revision: 50468

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50468&view=rev
Log:
eclipse plugin: Don't log missing files when
the path is null or empty

Modified:
    trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/Preferences.java
    trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java

Modified: 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/Preferences.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/Preferences.java?rev=50468&r1=50467&r2=50468&view=diff
==============================================================================
--- 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/Preferences.java 
(original)
+++ 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/Preferences.java 
Sat Jul 30 09:54:50 2011
@@ -131,7 +131,6 @@
         getPreferences( ).setValue( Constants.P_INST_DEFAULT_INSTALL, 
newInstallName );
     }
 
-
        /**
         * Returns a new Paths object based on the specified install name
         * @param installName The install name used for the paths

Modified: 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java?rev=50468&r1=50467&r2=50468&view=diff
==============================================================================
--- trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java 
(original)
+++ trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java 
Sat Jul 30 09:54:50 2011
@@ -319,7 +319,7 @@
        public static boolean isValidFilePath( String filePath )
        {
            boolean valid = filePath != null && !filePath.isEmpty() && new 
File(filePath).exists();
-           if ( valid == false )
+           if ( valid == false && ! StringUtils.isNullOrEmpty( filePath ) )
                Logger.getInstance().logWarn("The file does not exist or is 
null: " + filePath); //$NON-NLS-1$
            return valid;
        }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to