Dealing with a possible null pointer dereference
This commit is contained in:
parent
5d89978000
commit
790fc2ffaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user