git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
...
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
serial
/
Importer.java
diff --git
a/src/be/nikiroo/utils/serial/Importer.java
b/src/be/nikiroo/utils/serial/Importer.java
index a017fabfd362ea3ad27f72e0a6305856db2e41a1..7a45ddfa0d51b54c43ce597d9fb8085c27bfb73b 100644
(file)
--- 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 {
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");
}
throw new NullPointerException("InputStream is empty");
}