Skip to content

Commit 65628f7

Browse files
committed
Issue jenkinsci#290: Fix broken tests
1 parent 04cf2f9 commit 65628f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/jenkinsci/plugins/stashNotifier/StashNotifier.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,11 @@ protected String getBuildKey(final Run<?, ?> run,
10651065
StringBuilder key = new StringBuilder();
10661066

10671067
if (prependParentProjectKey || getDescriptor().isPrependParentProjectKey()) {
1068-
key.append(run.getParent().getParent().getFullName()).append('-');
1068+
ItemGroup parent = run.getParent().getParent();
1069+
if(parent != null)
1070+
{
1071+
key.append(parent.getFullName()).append('-');
1072+
}
10691073
}
10701074

10711075
if (projectKey != null && projectKey.trim().length() > 0) {

0 commit comments

Comments
 (0)