Skip to content

Commit

Permalink
Merge pull request #347 from udda1996/update-1.x
Browse files Browse the repository at this point in the history
Improve getDependencyPath method
  • Loading branch information
udda1996 authored Feb 8, 2024
2 parents 72fa7e6 + 378b1f9 commit b8a53aa
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 b8a53aa

Please sign in to comment.