[hg] main-silver: #231804 - AssertionError at org.netbeans.modul...

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: #231804 - AssertionError at org.netbeans.modul...
  • Date: Wed, 26 Jun 2013 13:41:20 -0700

changeset bb271d0060c3 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/bb271d0060c3
description:
        #231804 - AssertionError at 
org.netbeans.modules.bugzilla.issue.BugzillaIssue$8.run

diffstat:

 bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java   |  3 
++-
 mylyn.util/src/org/netbeans/modules/mylyn/util/SubmitTaskCommand.java |  4 
+++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (34 lines):

diff --git 
a/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java 
b/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
--- a/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
+++ b/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
@@ -1123,7 +1123,8 @@
                     RepositoryResponse rr = 
submitCmd.getRepositoryResponse();
                     if(!submitCmd.hasFailed()) {
                         ITask newTask = submitCmd.getSubmittedTask();
-                        assert newTask != null && newTask != task;
+                        assert newTask != null;
+                        assert newTask != task;
                         task = newTask;
                         resetModel();
                         String id = task.getTaskId();
diff --git 
a/mylyn.util/src/org/netbeans/modules/mylyn/util/SubmitTaskCommand.java 
b/mylyn.util/src/org/netbeans/modules/mylyn/util/SubmitTaskCommand.java
--- a/mylyn.util/src/org/netbeans/modules/mylyn/util/SubmitTaskCommand.java
+++ b/mylyn.util/src/org/netbeans/modules/mylyn/util/SubmitTaskCommand.java
@@ -50,6 +50,7 @@
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
 import org.eclipse.mylyn.internal.tasks.core.data.TaskDataManager;
 import org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob;
 import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
@@ -87,7 +88,8 @@
         
         IStatus status = job.startJob(monitor);
         rr = job.getResponse();
-        if (status != null && status.getSeverity() == IStatus.ERROR) {
+        if (status != null && status != Status.OK_STATUS) {
+            log.log(Level.INFO, "Command failed with status: {0}", status); 
//NOI18N
             if (status.getException() instanceof CoreException) {
                 throw (CoreException) status.getException();
             } else {

[hg] main-silver: #231804 - AssertionError at org.netbeans.modul...

Ondrej Vrabec 06/26/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close