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

Commit

Permalink
Merge pull request #35 from sbtqa/bugfix/248
Browse files Browse the repository at this point in the history
Add NPE catch
  • Loading branch information
clicman authored May 30, 2019
2 parents 5347833 + 07e4aed commit de9b43a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit de9b43a

Please sign in to comment.