-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only add the agent jar if it can be located
The CodeSource and location of the agent jar's ProtectionDomain can both be null (though the latter was only documented post-1.8). Only try to add the jar if both are available. Also, when the location URL is not null, convert it to a URI instead of a Path. This works on all platforms.
- Loading branch information
1 parent
5eb40da
commit ca4bc1b
Showing
1 changed file
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters