diff -r 47e29cc0f29c -r 081b69e00f3e Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py --- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Sat May 24 18:01:53 2014 +0200 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Thu May 29 21:02:44 2014 +0200 @@ -112,6 +112,10 @@ enc = encoding source = [line.encode(enc) for line in source] + # Don't check an empty file + if source == []: + return stats, [] + if fixIssues: from CodeStyleFixer import CodeStyleFixer fixer = CodeStyleFixer(