Nobody commented on my earlier 'patch', so I'll continue with the cvs
diff -N's.. 

I attached it this time instead of trying to put it inline, Outlook
probably munges it.. (Damn outlook)

And, didn't hear anything about logging preferences, etc, so I tossed in
a System.err output in here.. 




 <<filerhandlerpatch.txt>> 
Index: FilerHandler.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-jmeter/src/org/apache/jmeter/save/handlers/FilerHandler.java,v
retrieving revision 1.4
diff -r1.4 FilerHandler.java
28c28,31
<               Filer save = (Filer)saveObject;
---
>               // protect ourselves from bad input a bit..
>         if(saveObject == null || out == null) return;
> 
>         Filer save = (Filer)saveObject;
42c45,49
<               out.write(JMeterHandler.convertToXML(save.getFile()));
---
>               if(save.getFile() != null) {
>             out.write(JMeterHandler.convertToXML(save.getFile()));
>         } else {
>             System.err.println("Warning: Saved instance of " + save.getName() + " 
>that had empty filename attribute.");
>         }
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to