We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c38118 commit c0ab8e6Copy full SHA for c0ab8e6
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/model/EnrichmentMapParameters.java
@@ -831,14 +831,14 @@ public static boolean checkFile(String filename) {
831
// Check to see if the files exist and are readable.
832
// If the file is unreadable change the color of the font to red
833
// otherwise the font should be black.
834
- if (filename != null) {
835
- File tempfile = new File(filename);
+ if (filename != null && !filename.trim().isEmpty()) {
+ File file = new File(filename.trim());
836
837
- if (!tempfile.canRead())
838
- return false;
+ if (file.exists() && file.canRead())
+ return true;
839
}
840
841
- return true;
+ return false;
842
843
844
/**
0 commit comments