Skip to content

Commit

Permalink
Merge pull request #5 from gfleury/fix-null-pointer-tsuruaction
Browse files Browse the repository at this point in the history
Fix nullpointer on tsuruaction. Closes #3
  • Loading branch information
gfleury authored Sep 1, 2018
2 parents 394ac52 + 0dc2a19 commit 907e72a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ protected Execution run() throws Exception {

File fileDir = new File(getWorkspaceFilePath().getRemote() + "/");

ArrayList<File> fileList = new ArrayList<File>(fileDir.listFiles().length);
ArrayList<File> fileList;

if (fileDir != null) {
fileList = new ArrayList<File>(fileDir.listFiles().length);
} else {
throw new IOException("Failed to enumerate files from: " + getWorkspaceFilePath().getRemote() + "/");
}

File tsuruIgnore = new File(fileDir.getAbsolutePath() + File.separator + ".tsuruignore");
List<String> ignoredFiles = new ArrayList<>();
Expand Down

0 comments on commit 907e72a

Please sign in to comment.