diff options
Diffstat (limited to 'src/java/com/sun/gluegen/runtime/BufferFactory.java.javase')
-rwxr-xr-x | src/java/com/sun/gluegen/runtime/BufferFactory.java.javase | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase index 472733f..1e660c1 100755 --- a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase +++ b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase @@ -77,11 +77,11 @@ public class BufferFactory { } /** Helper routine to tell whether a buffer is direct or not. Null - pointers are considered direct. isDirect() should really be + pointers are considered NOT direct. isDirect() should really be public in Buffer and not replicated in all subclasses. */ public static boolean isDirect(Object buf) { if (buf == null) { - return true; + return false; } if (buf instanceof ByteBuffer) { return ((ByteBuffer) buf).isDirect(); |