...
[nikiroo-utils.git] / src / be / nikiroo / utils / serial / Importer.java
index a017fabfd362ea3ad27f72e0a6305856db2e41a1..7a45ddfa0d51b54c43ce597d9fb8085c27bfb73b 100644 (file)
@@ -72,10 +72,10 @@ public class Importer {
                                new NextableInputStreamStep('\n'));
 
                try {
-                       if (in == null || stream.eof()) {
-                               if (in == null) {
-                                       throw new NullPointerException("InputStream is null");
-                               }
+                       if (in == null) {
+                               throw new NullPointerException("InputStream is null");
+                       }
+                       if (stream.eof()) {
                                throw new NullPointerException("InputStream is empty");
                        }