mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-24 16:30:54 +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
|
* @return true if the resources should be copied
|
||||||
*/
|
*/
|
||||||
public boolean shouldCopyResources() {
|
public boolean shouldCopyResources() {
|
||||||
final Path cFileDirectory = primaryCFile.getParent().toAbsolutePath();
|
final Path cFileDirectory = primaryCFile.toAbsolutePath().getParent();
|
||||||
final Path outputDirectory = getOutputDirectory().toAbsolutePath();
|
final Path outputDirectory = getOutputDirectory().toAbsolutePath();
|
||||||
return !cFileDirectory.equals(outputDirectory);
|
return !cFileDirectory.equals(outputDirectory);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user