diff --git a/src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java b/src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java index f145f985..1f433b57 100644 --- a/src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java +++ b/src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java @@ -127,7 +127,7 @@ public List getTriggers() { User current = User.current(); if (current != null) { UserProperty p = current.getProperty(UserProperty.class); - if (p != null && p.getProjectName().equalsIgnoreCase(project.getFullName())) { + if (p != null && project.getFullName().equalsIgnoreCase(p.getProjectName())) { return p.getTriggers(); } }