diff options
author | relves | 2008-12-18 01:01:14 +0000 |
---|---|---|
committer | relves | 2008-12-18 01:01:14 +0000 |
commit | bfb0fbcfc3981bb8badb4ae485a71d4edc64f7f2 (patch) | |
tree | f8efd17354c676861da2065d7594b806f0bd5212 /org.eclipse.mylyn.bugzilla.core | |
parent | 38310183baf31efe219a518b1e388f96a089ff1f (diff) | |
download | org.eclipse.mylyn.tasks-bfb0fbcfc3981bb8badb4ae485a71d4edc64f7f2.tar.gz org.eclipse.mylyn.tasks-bfb0fbcfc3981bb8badb4ae485a71d4edc64f7f2.tar.xz org.eclipse.mylyn.tasks-bfb0fbcfc3981bb8badb4ae485a71d4edc64f7f2.zip |
NEW - bug 257825: [patch] Java Problem: Potential null pointer access: The variable options may be null at this location
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257825
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
2 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java index 0e8705236..9fab63822 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java @@ -262,10 +262,8 @@ public class BugzillaAttributeMapper extends TaskAttributeMapper { options = configuration.getOptionValues(BugzillaAttribute.RESOLUTION, attributeProduct.getValue()); // DUPLICATE and MOVED have special meanings so do not show as resolution // TODO: COPIED FUNCTIONALITY from RepositoryConfiguration.addOperation() refactor. - if (options != null) { - options.remove("DUPLICATE"); //$NON-NLS-1$ - options.remove("MOVED"); //$NON-NLS-1$ - } + options.remove("DUPLICATE"); //$NON-NLS-1$ + options.remove("MOVED"); //$NON-NLS-1$ } Map<String, String> newOptions = new LinkedHashMap<String, String>(); for (String option : options) { @@ -292,7 +290,7 @@ public class BugzillaAttributeMapper extends TaskAttributeMapper { @Override public String getLabel(TaskAttribute taskAttribute) { if (taskAttribute.getId().startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { - return super.getLabel(taskAttribute) + ":"; + return super.getLabel(taskAttribute) + ":"; //$NON-NLS-1$ } else { return super.getLabel(taskAttribute); } diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java index a0bacede9..17d77fc2d 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java @@ -352,7 +352,7 @@ public class RepositoryConfiguration implements Serializable { case RESOLUTION: return getResolutions(); default: - return new ArrayList<String>(); + return Collections.emptyList(); } } |