Skip to content

Commit c2fbf8e

Browse files
committed
fix(loader): fix case where jarpath is not set
1 parent 717af3e commit c2fbf8e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deep/src/main/java/com/intergral/deep/DeepLoader.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ private File getToolsJar() {
5959
* @return the {@link File} object for the agent
6060
*/
6161
private File getAgentJar(final String jarPath) {
62-
final File file = new File(jarPath);
63-
if (file.exists()) {
64-
return file;
62+
if (jarPath != null) {
63+
final File file = new File(jarPath);
64+
if (file.exists()) {
65+
return file;
66+
}
6567
}
6668
final InputStream resourceAsStream = getAgentJarStream();
6769
final String pathname = extractLibrary(resourceAsStream);

0 commit comments

Comments
 (0)