diff src/org/eclipse/jetty/io/JBuffer.java @ 1053:7e4b41247544

fix JBuffer.array()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 00:32:02 -0700
parents 4a2489f1d5fe
children 87275900646e
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 00:27:16 2016 -0700
+++ b/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 00:32:02 2016 -0700
@@ -34,7 +34,11 @@
 	}
 
 	public byte[] array() {
-		return bb.hasArray() ? bb.array() : null;
+		return bb.array();
+	}
+
+	public boolean hasArray() {
+		return bb.hasArray();
 	}
 
 	public JBuffer duplicate() {