Consistent exception ordering in SourceChannelImpl.

Always throw an NPE before ensuring the channel's option.

bug: 26141154
Change-Id: I851716dac1679a3ef687c471b79249094e36da62
diff --git a/ojluni/src/main/java/sun/nio/ch/SourceChannelImpl.java b/ojluni/src/main/java/sun/nio/ch/SourceChannelImpl.java
index 284f126..99b9dda 100755
--- a/ojluni/src/main/java/sun/nio/ch/SourceChannelImpl.java
+++ b/ojluni/src/main/java/sun/nio/ch/SourceChannelImpl.java
@@ -156,12 +156,10 @@
     }
 
     public int read(ByteBuffer dst) throws IOException {
-        ensureOpen();
-        // ----- BEGIN android -----
         if (dst == null) {
-          throw new NullPointerException();
+            throw new NullPointerException();
         }
-        // ----- END android -----
+        ensureOpen();
         synchronized (lock) {
             int n = 0;
             try {