Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in FileUtils.getRelativePath #3366

Open
raducoravu opened this issue Sep 26, 2019 · 1 comment
Open

NullPointerException in FileUtils.getRelativePath #3366

raducoravu opened this issue Sep 26, 2019 · 1 comment

Comments

@raducoravu
Copy link
Member

@raducoravu raducoravu commented Sep 26, 2019

The stack trace:

https://www.oxygenxml.com/forum/viewtopic.php?f=20&t=20682

 D:\Oxygen XML Author 21\frameworks\dita\DITA-OT3.x\plugins\org.dita.base\build_preprocess.xml:87: java.lang.NullPointerException
at org.dita.dost.util.FileUtils.getRelativePath(FileUtils.java:169)
at org.dita.dost.module.DebugAndFilterModule.getRelativePathFromOut(DebugAndFilterModule.java:532)
at org.dita.dost.module.DebugAndFilterModule.getPathtoProject(DebugAndFilterModule.java:514)
at org.dita.dost.writer.DitaWriterFilter.startDocument(DitaWriterFilter.java:95)
at org.xml.sax.helpers.XMLFilterImpl.startDocument(Unknown Source)
at org.dita.dost.writer.TopicFragmentFilter.startDocument(TopicFragmentFil

It looks like a side effect of a condition added by @robander in: #2797

@raducoravu

This comment has been minimized.

Copy link
Member Author

@raducoravu raducoravu commented Sep 26, 2019

Looking at the console output provided by the end user, at some point I think he has some absolute paths pointing outside of the folder where the DITA Map is located, probably a conref which points to some network drive located on an Y drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.