am 4f416144: am da379447: am 509a243c: Merge "Check the return value of listFiles on the ifw directory"

* commit '4f4161442d1ac6c1a519a06df0e4efeab3072195':
  Check the return value of listFiles on the ifw directory
This commit is contained in:
Ben Gruver
2014-02-14 23:22:13 +00:00
committed by Android Git Automerger

View File

@@ -270,11 +270,13 @@ public class IntentFirewall {
} }
File[] files = rulesDir.listFiles(); File[] files = rulesDir.listFiles();
for (int i=0; i<files.length; i++) { if (files != null) {
File file = files[i]; for (int i=0; i<files.length; i++) {
File file = files[i];
if (file.getName().endsWith(".xml")) { if (file.getName().endsWith(".xml")) {
readRules(file, resolvers); readRules(file, resolvers);
}
} }
} }