Throw NPE

This commit is contained in:
wtfsck 2022-07-02 22:10:54 +02:00
parent ef6edd2b18
commit 985b215f8f
1 changed files with 1 additions and 1 deletions

View File

@ -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;