| Index: build/android/pylib/utils/findbugs.py
|
| diff --git a/build/android/pylib/utils/findbugs.py b/build/android/pylib/utils/findbugs.py
|
| index d946f319f14043899ab8caac67e46fbef7f2de5d..82408b017d85b219f1e8e5036b57c7dfb2901279 100644
|
| --- a/build/android/pylib/utils/findbugs.py
|
| +++ b/build/android/pylib/utils/findbugs.py
|
| @@ -32,8 +32,11 @@ def _StripLineNumbers(current_warnings):
|
|
|
|
|
| def _DiffKnownWarnings(current_warnings_set, known_bugs_file):
|
| - with open(known_bugs_file, 'r') as known_bugs:
|
| - known_bugs_set = set(known_bugs.read().splitlines())
|
| + if os.path.exists(known_bugs_file):
|
| + with open(known_bugs_file, 'r') as known_bugs:
|
| + known_bugs_set = set(known_bugs.read().splitlines())
|
| + else:
|
| + known_bugs_set = set()
|
|
|
| new_warnings = current_warnings_set - known_bugs_set
|
| _PrintMessage(sorted(new_warnings), 'New', 'Please fix, or perhaps add to',
|
|
|