]> source.dussan.org Git - sonarqube.git/commitdiff
Fixed quality issue
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 14 Aug 2013 09:07:33 +0000 (11:07 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 14 Aug 2013 09:07:33 +0000 (11:07 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueHandlers.java

index 8d972013fcd4b2b8ef060af0526363f8db7a3cd7..1cb74c5f9bea19db1b31deeb8cda459b76ff7e93 100644 (file)
@@ -116,7 +116,11 @@ public class IssueHandlers implements BatchExtension {
 
     @Override
     public IssueHandler.Context assign(@Nullable String assignee) {
-      updater.assign(issue, new DefaultUser().setLogin(assignee).setName(assignee), changeContext);
+      User user = null;
+      if(assignee != null) {
+        user = new DefaultUser().setLogin(assignee).setName(assignee);
+      }
+      updater.assign(issue, user, changeContext);
       return this;
     }