Cannot send a file using the remoteAnt task sendfile command due to a NullPointerException.
The NullPointerException is in line 140 of src/java/net/sf/antcontrib/antserver/commands/SendFileCommand.java
Line with bug:
if (! new File(todir, tofile).getCanonicalPath().startsWith(project.getBaseDir().getCanonicalPath())) {
Line with bug fix:
if (! new File(todir).getCanonicalPath().startsWith(project.getBaseDir().getCanonicalPath())) {
I can now send files successfully using the remoteAnt task sendfile command with the bug fix.
Attached is the SendCommand.java file with the bug fix.
the SendCommand.java file with the bug fix.