mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
02.07.2015 ca097c64e8cec05e8994a8b64d1bd9f994e54421
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Friday, October 2, 2015 15:07 +0200
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Monday, October 5, 2015 17:06 +0200
commitca097c64e8cec05e8994a8b64d1bd9f994e54421
tree 89dfb56d7edad1a283e5259554a07e3e62bc06a6 tree | zip | gz
parent 58ae0780d3609dd4aec757daa32d4f832e2d8705 view | diff
OPENDJ-1684 PR-71 Fix addrate and makeldif template path

If the template file path provided is relative, We need to retrieve the cannonical file before accessing the parent file.
With a relative path, file.getParentFile() returns null which caused the NPE.
1 files modified
2 ■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldif/TemplateFile.java 2 ●●● diff | view | raw | blame | history