Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2016-08-05 14:27:18 +0000
committerRyan D. Brooks2016-08-31 16:18:22 +0000
commit433b3c31d4cde1e950b1b32e3e5e4d056c654470 (patch)
tree66ae05304ff1d6355a4bfc510d82b0658dc66939 /plugins
parent9b1dcc38a1b138f5fe1e72926e4b90a94d40ba2b (diff)
downloadorg.eclipse.osee-433b3c31d4cde1e950b1b32e3e5e4d056c654470.tar.gz
org.eclipse.osee-433b3c31d4cde1e950b1b32e3e5e4d056c654470.tar.xz
org.eclipse.osee-433b3c31d4cde1e950b1b32e3e5e4d056c654470.zip
bug[ats_ATS306964]: NR Alpha - Transaction with id xxx was not found
Prior the the transaction token refactor, the client held the full TransactionRecord, which had the comment in it. Now that it just has a token, once a purge has taken place, the comment no longer exists. Change-Id: I53af808afbf9071f6a2ce64e9fd1d5bf7d671085
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
index 1512efe50a4..ed8b662b392 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.framework.ui.skynet.change.presenter;
import java.text.NumberFormat;
import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.TransactionDoesNotExist;
import org.eclipse.osee.framework.core.model.TransactionDelta;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.util.AXml;
@@ -47,7 +48,13 @@ public final class SpecificTxsHandler implements IChangeReportUiHandler {
OseeLog.log(Activator.class, Level.SEVERE, ex.toString(), ex);
branchName = "Unknown";
}
- String toReturn = TransactionManager.getComment(txDelta.getEndTx());
+
+ String toReturn = null;
+ try {
+ toReturn = TransactionManager.getComment(txDelta.getEndTx());
+ } catch (TransactionDoesNotExist ex) {
+ toReturn = "Not Found";
+ }
if (!Strings.isValid(toReturn)) {
toReturn = String.format("%s - Transactions", branchName);
}

Back to the top