Merge remote-tracking branch 'origin/patch'

This commit is contained in:
ghidra1 2021-12-21 15:39:28 -05:00
commit cfaa8b9032
5 changed files with 102 additions and 71 deletions

View file

@ -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.*;
/**
* <code>DomainObjectDBTransaction</code> 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) {