Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv28029
Modified Files:
Casting.java
Log Message:
Could give exceptions
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util
Index: Casting.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/Casting.java,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -b -r1.124 -r1.125
--- Casting.java 5 Jan 2009 10:30:43 -0000 1.124
+++ Casting.java 14 Apr 2009 09:20:14 -0000 1.125
@@ -16,7 +16,7 @@
*
* @author Michiel Meeuwissen
* @since MMBase-1.6
- * @version $Id: Casting.java,v 1.124 2009/01/05 10:30:43 michiel Exp $
+ * @version $Id: Casting.java,v 1.125 2009/04/14 09:20:14 michiel Exp $
*/
import java.util.*;
@@ -585,7 +585,9 @@
int tot;
do {
tot = in.read(buf, 0, 1024);
+ if (tot > 0) {
out.write(buf, 0, tot);
+ }
} while (tot > 0);
} catch (IOException ioe) {
log.error(ioe);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs