$ fclient put --htl 0 CHK@ _test.asf
java.lang.NullPointerException
at freenet.client.metadata.DocumentCommand.<init>(DocumentCommand.java:69)
at freenet.client.metadata.DocumentCommand.<init>(DocumentCommand.java:63)
at freenet.client.cli.PutCommand.getProcess(PutCommand.java:102)
at freenet.client.cli.CLI.execute(CLI.java:401)
at freenet.client.cli.Main.main(Main.java:11)This won't happen if the file extension is unknown, or if --dontGuessType is given. It looks very similar to the problem reported in the thread "Possible fproxy bug as of 494" <[EMAIL PROTECTED]> and following; so I patched it the same way Oskar fixed that bug. I don't actually know what I'm doing but it WFM. Please apply after reviewing!
Index: PutCommand.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/cli/PutCommand.java,v
retrieving revision 1.4
diff -u -r1.4 PutCommand.java
--- PutCommand.java 10 Aug 2002 18:20:31 -0000 1.4
+++ PutCommand.java 7 Sep 2002 17:08:52 -0000
@@ -99,7 +99,7 @@
metadata = new Metadata(ms);
DocumentCommand mdc = metadata.getDefaultDocument();
if (mdc == null) {
- mdc = new DocumentCommand((Metadata) null);
+ mdc = new DocumentCommand(ms);
metadata.addDocument(mdc);
}
mdc.addPart(new InfoPart("file", type));
-- Robbe
signature.ng
Description: PGP signature
