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

Gaetan Boismal
02.07.2015 5342ff0e2822e126600e7db4aa9604b54da7ed4f
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
commit5342ff0e2822e126600e7db4aa9604b54da7ed4f
tree 1e55a8428fd303eca4b4095a690da6ba402789cc tree | zip | gz
parent 9f4ac3fca44cdf8c70f1fc3718b38f80c95c9e96 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-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldif/TemplateFile.java 2 ●●● diff | view | raw | blame | history