Fixed NullPointerException with IllegalArgumentException.

This commit is contained in:
Christian P. MOMON 2020-09-13 00:46:44 +02:00
parent 016eab3417
commit c497501bc6
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2015,2017-2018 Christian Pierre MOMON
* Copyright (C) 2013-2020 Christian Pierre MOMON
*
* This file is part of Devinsy-strings.
*
@ -57,7 +57,7 @@ public class StringListInputStream extends InputStream
{
if (source == null)
{
throw new NullPointerException("source is null.");
throw new IllegalArgumentException("source is null.");
}
else
{

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2018 Christian Pierre MOMON
* Copyright (C) 2013-2020 Christian Pierre MOMON
*
* This file is part of Devinsy-strings.
*
@ -57,7 +57,7 @@ public class StringListWriter extends Writer
{
if (target == null)
{
throw new NullPointerException("target is null.");
throw new IllegalArgumentException("target is null.");
}
else
{