Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2012-09-18 16:36:11 -0400
committerBenjamin Muskalla2012-09-18 16:36:11 -0400
commit60c1f836e5271b7a2eaa8b64f2bc4b3c2dd824e3 (patch)
tree957b169685d2d0f2f0472ef59ffc500c7c6e01cd /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data
parent6c4e1eba3c3048829d1f2a4d70dcecdc95edb91d (diff)
downloadorg.eclipse.mylyn.tasks-60c1f836e5271b7a2eaa8b64f2bc4b3c2dd824e3.tar.gz
org.eclipse.mylyn.tasks-60c1f836e5271b7a2eaa8b64f2bc4b3c2dd824e3.tar.xz
org.eclipse.mylyn.tasks-60c1f836e5271b7a2eaa8b64f2bc4b3c2dd824e3.zip
389842: TaskAttribute#setValues should not accept null
Change-Id: Ife8bbb8fa56aafd69f397582fdd3b6d4a8ac358b Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=389842
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
index 5a01c9d38..a923d6573 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
@@ -573,6 +573,8 @@ public final class TaskAttribute {
}
public void setValues(List<String> values) {
+ Assert.isNotNull(values);
+ Assert.isTrue(!values.contains(null));
this.values.clear();
this.values.addAll(values);
}

Back to the top