Fixed NullPointerException with IllegalArgumentException.
This commit is contained in:
parent
016eab3417
commit
c497501bc6
2 changed files with 4 additions and 4 deletions
|
@ -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.
|
* This file is part of Devinsy-strings.
|
||||||
*
|
*
|
||||||
|
@ -57,7 +57,7 @@ public class StringListInputStream extends InputStream
|
||||||
{
|
{
|
||||||
if (source == null)
|
if (source == null)
|
||||||
{
|
{
|
||||||
throw new NullPointerException("source is null.");
|
throw new IllegalArgumentException("source is null.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -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.
|
* This file is part of Devinsy-strings.
|
||||||
*
|
*
|
||||||
|
@ -57,7 +57,7 @@ public class StringListWriter extends Writer
|
||||||
{
|
{
|
||||||
if (target == null)
|
if (target == null)
|
||||||
{
|
{
|
||||||
throw new NullPointerException("target is null.");
|
throw new IllegalArgumentException("target is null.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue