
File.list() can return null, so it's unsafe to use it as an iterator in a for-loop. Store the result of File.list() first and only iterate it when it's not null. Change-Id: I0ced67e5bb5bc588433cb6a03a6283f9b31cb649
File.list() can return null, so it's unsafe to use it as an iterator in a for-loop. Store the result of File.list() first and only iterate it when it's not null. Change-Id: I0ced67e5bb5bc588433cb6a03a6283f9b31cb649