From ec35b81ca81ea6ebfa34c965795bfed4af9c298c Mon Sep 17 00:00:00 2001 From: ghidra1 Date: Tue, 21 Dec 2021 10:32:57 -0500 Subject: [PATCH] GP-0 Corrected exception catch --- .../ghidra/framework/data/DomainObjectDBTransaction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectDBTransaction.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectDBTransaction.java index a7fc529b9e..123d93c4be 100644 --- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectDBTransaction.java +++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainObjectDBTransaction.java @@ -1,6 +1,5 @@ /* ### * IP: GHIDRA - * REVIEWED: YES * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +15,8 @@ */ package ghidra.framework.data; +import java.util.*; + import ghidra.framework.model.*; import ghidra.framework.plugintool.PluginTool; import ghidra.util.Msg; @@ -23,8 +24,6 @@ import ghidra.util.SystemUtilities; import ghidra.util.datastruct.WeakDataStructureFactory; import ghidra.util.datastruct.WeakSet; -import java.util.*; - /** * DomainObjectDBTransaction represents an atomic undoable operation performed * on a single domain object. @@ -145,7 +144,7 @@ class DomainObjectDBTransaction implements Transaction { try { entry = list.get(transactionID - baseId); } - catch (ArrayIndexOutOfBoundsException e) { + catch (IndexOutOfBoundsException e) { throw new IllegalStateException("Transaction not found"); } if (entry.status != NOT_DONE) {