eclipse plugin: Don't log missing files when the path is null or empty
This commit is contained in:
parent
a62c6b2da9
commit
a65b020516
2 changed files with 1 additions and 2 deletions
|
@ -131,7 +131,6 @@ public class Preferences extends AbstractPreferenceInitializer
|
|||
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
|
||||
|
|
|
@ -319,7 +319,7 @@ public class ResourceUtils
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue