Skip to content

Commit 80f1878

Browse files
authored
Merge pull request #1502 from tronprotocol/develop
master
2 parents a38bf05 + b91f5fa commit 80f1878

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/tron/core/db/PendingManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public void close() {
2727

2828
for (TransactionCapsule tx : this.tmpTransactions) {
2929
try {
30-
if (tx.getTrxTrace().getTimeResultType().equals(TimeResultType.NORMAL)) {
30+
if (tx.getTrxTrace() != null &&
31+
tx.getTrxTrace().getTimeResultType().equals(TimeResultType.NORMAL)) {
3132
dbManager.getRepushTransactions().put(tx);
3233
}
3334
} catch (InterruptedException e) {
@@ -39,9 +40,7 @@ public void close() {
3940

4041
for (TransactionCapsule tx : dbManager.getPoppedTransactions()) {
4142
try {
42-
if (tx.getTrxTrace().getTimeResultType().equals(TimeResultType.NORMAL)) {
4343
dbManager.getRepushTransactions().put(tx);
44-
}
4544
} catch (InterruptedException e) {
4645
logger.error(e.getMessage());
4746
Thread.currentThread().interrupt();

0 commit comments

Comments
 (0)