deleteChildren was called on directory instead of gitDir, leading to a potential null pointer exception if the git directory existed initially. Bug: 550340 Change-Id: Iafc3b2961253a99862a59e81c7371f7bc564b412 Signed-off-by: Adrien Bustany <adrien-xx-eclipse@bustany.org>tags/v5.1.10.201908230655-r
FileUtils.delete(gitDir, FileUtils.RECURSIVE | FileUtils.delete(gitDir, FileUtils.RECURSIVE | ||||
| FileUtils.SKIP_MISSING | FileUtils.IGNORE_ERRORS); | | FileUtils.SKIP_MISSING | FileUtils.IGNORE_ERRORS); | ||||
} else { | } else { | ||||
deleteChildren(directory); | |||||
deleteChildren(gitDir); | |||||
} | } | ||||
} | } | ||||
} catch (IOException e) { | } catch (IOException e) { |