summaryrefslogtreecommitdiff
path: root/bin/flycheck-android-java.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/flycheck-android-java.py')
-rw-r--r--bin/flycheck-android-java.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/flycheck-android-java.py b/bin/flycheck-android-java.py
index c679f8b..ae52fe7 100644
--- a/bin/flycheck-android-java.py
+++ b/bin/flycheck-android-java.py
@@ -116,7 +116,7 @@ def file_in_list(needle, files):
Otherwise return None."""
if os.path.exists(needle):
for i in range(0, len(files) - 1):
- if os.path.samefile(needle, files[i]):
+ if os.path.exists(files[i]) and os.path.samefile(needle, files[i]):
return files[0:i] + files[i + 1:]
return None