1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-26 03:32:23 +00:00

Fixed NPE when compiling in the local directory. Closes #671

This commit is contained in:
jespergravgaard 2021-06-19 13:38:23 +02:00
parent 924e795c06
commit 8a0d9d3708

View File

@ -276,7 +276,7 @@ public class OutputFileManager {
* @return true if the resources should be copied
*/
public boolean shouldCopyResources() {
final Path cFileDirectory = primaryCFile.getParent().toAbsolutePath();
final Path cFileDirectory = primaryCFile.toAbsolutePath().getParent();
final Path outputDirectory = getOutputDirectory().toAbsolutePath();
return !cFileDirectory.equals(outputDirectory);
}