Index: trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java	(revision 11329)
+++ trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java	(revision 11330)
@@ -3,5 +3,4 @@
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 import java.io.IOException;
@@ -170,11 +169,9 @@
     /**
      * Tests if readBytesFromStream handles null streams (might happen when there is no data on error stream)
-     * @throws IOException
-     *
+     * @throws IOException in case of I/O error
      */
     @Test
     public void testNullStreamForReadBytesFromStream() throws IOException {
-        assertNull("Null on null stream", Utils.readBytesFromStream(null));
+        assertEquals("Empty on null stream", 0, Utils.readBytesFromStream(null).length);
     }
-
 }
