diff --git a/main/src/com/google/refine/commands/project/SetProjectTagsCommand.java b/main/src/com/google/refine/commands/project/SetProjectTagsCommand.java index 71fbba7f1..c3e67e311 100644 --- a/main/src/com/google/refine/commands/project/SetProjectTagsCommand.java +++ b/main/src/com/google/refine/commands/project/SetProjectTagsCommand.java @@ -81,13 +81,15 @@ public class SetProjectTagsCommand extends Command { tag = tag.trim(); if (!tag.isEmpty()) { - if (allProjectTags!= null && allProjectTags.containsKey(tag)) { - allProjectTags.put(tag, allProjectTags.get(tag) + 1); - } else { - allProjectTags.put(tag, 1); + if (allProjectTags!= null) { + if (allProjectTags.containsKey(tag)) { + allProjectTags.put(tag, allProjectTags.get(tag) + 1); + } else { + allProjectTags.put(tag, 1); + } } polishedTags.add(tag); - } + } } // Lets update the project tags