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:
parent
924e795c06
commit
8a0d9d3708
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user