Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-08-19 14:31:58 -0400
committerFrank Becker2013-08-23 11:19:10 -0400
commite7fe0a9a130215f70da651ace0d21640d9a93e25 (patch)
tree5ca7e00597518e91664bf55532e402e124330921 /org.eclipse.mylyn.bugzilla.ui
parent5dbe1d119010c4ebef52ec5300281cad07cc97bc (diff)
downloadorg.eclipse.mylyn.tasks-e7fe0a9a130215f70da651ace0d21640d9a93e25.tar.gz
org.eclipse.mylyn.tasks-e7fe0a9a130215f70da651ace0d21640d9a93e25.tar.xz
org.eclipse.mylyn.tasks-e7fe0a9a130215f70da651ace0d21640d9a93e25.zip
415263: Null Pointer Exception initializing Bugzilla 4.x task data with
product absent from local configuration Change-Id: I6e9cd732f63c057be297ea95ffa0db67c2926cd5 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=415263
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
index 9323d6982..b5f271100 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
@@ -531,13 +531,13 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
}
if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_4_0) >= 0) {
AbstractTaskEditorPart part = getPart(ID_PART_ACTIONS);
- Boolean unconfirmedAllowed = repositoryConfiguration.getUnconfirmedAllowed(taskAttribute.getValue());
+ boolean unconfirmedAllowed = repositoryConfiguration.getUnconfirmedAllowed(taskAttribute.getValue());
TaskAttribute unconfirmedAttribute = taskAttribute.getTaskData()
.getRoot()
.getAttribute(
TaskAttribute.PREFIX_OPERATION + BugzillaOperation.unconfirmed.toString());
- if (unconfirmedAttribute != null && unconfirmedAllowed != null) {
- unconfirmedAttribute.getMetaData().setReadOnly(!unconfirmedAllowed.booleanValue());
+ if (unconfirmedAttribute != null) {
+ unconfirmedAttribute.getMetaData().setReadOnly(!unconfirmedAllowed);
}
if (part != null) {
TaskEditorActionPart actionPart = (TaskEditorActionPart) part;

Back to the top