Skip to content

Commit c00cb8d

Browse files
authored
Merge pull request #8 from intergral/npe_loader
fix(loader): fix case where jarpath is not set
2 parents 6ebf7aa + c2fbf8e commit c00cb8d

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)