File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/org/tron/core/db Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments