Skip to content

Commit

Permalink
sdk installer: fix NPE if folder to make executable is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowislord committed Aug 18, 2015
1 parent 8c4af6b commit a007c68
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public void install(Progress progress) throws InstallationException {
}
private static void setExecutableContents(File parent, String path) {
File binDir = new File(parent, path);
for (File file : binDir.listFiles()) {
File[] fileList = binDir.listFiles();
for (File file : fileList) {
try {
file.setExecutable(true, false);
} catch (Exception ex) {
Expand Down

0 comments on commit a007c68

Please sign in to comment.