Yeah, just change the lines that say new DocumentCommand(new
Metadata(new MetadataSettings())); to new
DocumentCommand((Metadata)null); (which is how it originally was) and
then go into fproxy and try to insert a file.  You will immediately
get "Insert failed: error preparing metadata" (...)

On Fri, Aug 16, 2002 at 10:54:48AM +0200, Oskar Sandberg wrote:
> Can I see the NPE?
> 
> On Thu, Aug 15, 2002 at 11:11:32PM -0400, David Allen wrote:
> > Hello,
> > 
> > Attached is a tiny patch to fix the exceptions in fproxy that haven't
> > let anybody insert using fproxy for a while now.  Basically it was
> > just caused by creating new DocumentCommand objects with null Metadata
> > object arguments.  DocumentCommand always references that argument's
> > methods, so a NullPointerException kept getting thrown.
> > 
> > This just changes those calls to the DocumentCommand constructor to
> > include dummy Metadata objects.  I'm not sure if it's 100% correct,
> > but it works.   (Patch created with cvs diff -u)
> > 
> > -- 
> > David Allen
> > http://opop.nols.com/
> 
> _______________________________________________
> devl mailing list
> devl at freenetproject.org
> http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 

-- 
David Allen
http://opop.nols.com/

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to