Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18a7742

Browse files
authored
Merge pull request#8769 from petrovic-d/fix-gradle-test-progress-listener-npe
Prevent NPE inside GradleTestProgressListener
2 parents853607e +910ba6b commit18a7742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎java/gradle.test/src/org/netbeans/modules/gradle/test/GradleTestProgressListener.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ private String searchLocation(Testcase tc, String className, String methodName,
365365

366366
StringrelativePath =null;
367367
for (Map.Entry<ClasspathInfo,Path>ci :classpathInfo.entrySet()) {
368+
if (ci.getKey() ==null)continue;
368369
FileObjectfo =SourceUtils.getFile(ElementHandle.createTypeElementHandle(ElementKind.CLASS,className),ci.getKey());
369370
if (fo !=null) {
370371
relativePath =ci.getValue().relativize(FileUtil.toFile(fo).toPath()).toString();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp