Skip to content
This repository was archived by the owner on Feb 12, 2020. It is now read-only.

Commit f2cb99b

Browse files
committed
Merge pull request jenkinsci#70 from navyasruti/master
small null reference fix in merge trigger after ghprb
2 parents 5d1baf2 + d3d17e8 commit f2cb99b

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/jenkinsci/plugins/ghprb

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/ghprb/Ghprb.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public boolean isOktotestPhrase(String comment) {
115115
}
116116

117117
public boolean isTriggerPhrase(String comment) {
118-
return !triggerPhrase.equals("") && comment.contains(triggerPhrase);
118+
return !triggerPhrase.equals("") && comment != null && comment.contains(triggerPhrase);
119119
}
120120

121121
public boolean ifOnlyTriggerPhrase() {

0 commit comments

Comments
 (0)