From 0303fee50bc970cf9959bbd0cdeb868c39586f18 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 28 Feb 2018 11:00:23 +0100 Subject: [PATCH] Replaced NullPointerException with IllegarlArgumentException. --- src/fr/devinsy/sikevadb/core/XMLSikevaDB.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java index 428564a..945b2b3 100644 --- a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2013-2017 Christian Pierre MOMON + * Copyright (C) 2013-2018 Christian Pierre MOMON * * This file is part of SikevaDB, simple key value database. * @@ -75,11 +75,11 @@ public class XMLSikevaDB { if (out == null) { - throw new NullPointerException("out is null."); + throw new IllegalArgumentException("out is null."); } else if (source == null) { - throw new NullPointerException("source is null."); + throw new IllegalArgumentException("source is null."); } else if (fileName == null) { @@ -224,11 +224,11 @@ public class XMLSikevaDB if (out == null) { - throw new NullPointerException("out is null."); + throw new IllegalArgumentException("out is null."); } else if (source == null) { - throw new NullPointerException("element is null."); + throw new IllegalArgumentException("element is null."); } else { @@ -277,7 +277,7 @@ public class XMLSikevaDB { if (out == null) { - throw new NullPointerException("out is null."); + throw new IllegalArgumentException("out is null."); } else if (source == null) {