commit | 1e2458a0efbe51b4d72a211c1b1df4888a36b7cf | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Mar 20 14:39:36 2015 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Mar 20 14:26:49 2015 +0000 |
tree | c2f98b63b841c2b727877e98be57620eca945669 | |
parent | a57ae4a24943d8586bcc494672a8540eaa2cb149 [diff] |
BuckPrologCompiler: Fix potential NPE 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