Skip to content

Commit

Permalink
Improve getDependencyPath method
Browse files Browse the repository at this point in the history
  • Loading branch information
udda1996 committed Feb 8, 2024
1 parent 40fec53 commit 378b1f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/java/org/ballerinalang/distribution/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ public static Path getDistPath (String version) {
* @return returns dependency path for available distributions
*/
public static Path getDependencyPath (String version) {
return DEPENDENCY_PATH.resolve(version);
try {
return DEPENDENCY_PATH.resolve(version);
} catch (Exception e) {
return null;
}
}

/**
Expand Down

0 comments on commit 378b1f9

Please sign in to comment.