From 433b3c31d4cde1e950b1b32e3e5e4d056c654470 Mon Sep 17 00:00:00 2001 From: jmisinco Date: Fri, 5 Aug 2016 07:27:18 -0700 Subject: 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 --- .../framework/ui/skynet/change/presenter/SpecificTxsHandler.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins') 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); } -- cgit v1.2.1