X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fserial%2FImporter.java;h=7a45ddfa0d51b54c43ce597d9fb8085c27bfb73b;hb=46d2b6a47212fa2997f067990e67fcc02f2302c0;hp=a017fabfd362ea3ad27f72e0a6305856db2e41a1;hpb=564bbbdbc349805ff7fc1142facbedae87e5dc0e;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/serial/Importer.java b/src/be/nikiroo/utils/serial/Importer.java index a017fab..7a45ddf 100644 --- a/src/be/nikiroo/utils/serial/Importer.java +++ b/src/be/nikiroo/utils/serial/Importer.java @@ -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"); }