Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 07e4aed

Browse files
committed
Add NPE catch
1 parent d6ee167 commit 07e4aed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public TestDataProvider get(String key) throws DataException {
9797
*/
9898
@Override
9999
public TestDataProvider getByPath(String path) throws DataException {
100+
if (path == null) {
101+
throw new DataException("The path is null. Check your configuration");
102+
}
100103
return parseTestDataProvider(path);
101104
}
102105

0 commit comments

Comments
 (0)