mirror of https://github.com/icedland/iced.git
Throw NPE
This commit is contained in:
parent
ef6edd2b18
commit
985b215f8f
|
@ -194,7 +194,7 @@ public final class Encoder {
|
||||||
if (!(bitness == 16 || bitness == 32 || bitness == 64))
|
if (!(bitness == 16 || bitness == 32 || bitness == 64))
|
||||||
throw new IllegalArgumentException("bitness");
|
throw new IllegalArgumentException("bitness");
|
||||||
if (writer == null)
|
if (writer == null)
|
||||||
throw new IllegalArgumentException("writer");
|
throw new NullPointerException("writer");
|
||||||
immSizes = s_immSizes;
|
immSizes = s_immSizes;
|
||||||
this.writer = writer;
|
this.writer = writer;
|
||||||
this.bitness = bitness;
|
this.bitness = bitness;
|
||||||
|
|
Loading…
Reference in New Issue