Use NPE to report null arguments 68/81168/10
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Mar 2019 10:30:40 +0000 (11:30 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Mar 2019 13:56:20 +0000 (14:56 +0100)
commiteb415692c0324fd36e2573483e3a5fd03c89f1c4
treeacdbebffe5e07952aa7574099520ac26d6556544
parentd208510f59ad18766597a3340fd0c6844a639457
Use NPE to report null arguments

Our system should not be tolerating nulls, remove use of IAE
in favor of NPE, so that users are forced to guard.

Change-Id: I35c6521c99f12257deb76ea6fe571faaffec7130
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/SchemaContextUtilTest.java