From 07e4aed30ba5ef6a259c57d16cf508d38c2bf2fa Mon Sep 17 00:00:00 2001 From: Viktor Sidochenko Date: Thu, 30 May 2019 14:16:47 +0700 Subject: [PATCH] Add NPE catch --- .../ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java b/datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java index 9d56510..1bc404b 100644 --- a/datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java +++ b/datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java @@ -97,6 +97,9 @@ public TestDataProvider get(String key) throws DataException { */ @Override public TestDataProvider getByPath(String path) throws DataException { + if (path == null) { + throw new DataException("The path is null. Check your configuration"); + } return parseTestDataProvider(path); }