File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/main/java/org/tron/core Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -925,7 +925,6 @@ public void setResult(Runtime runtime) {
925
925
return ;
926
926
}
927
927
this .setResultCode (contractResult .UNKNOWN );
928
- return ;
929
928
}
930
929
931
930
public void setResultCode (contractResult code ) {
Original file line number Diff line number Diff line change @@ -135,11 +135,11 @@ public class Args {
135
135
private String storageDbEngine = "" ;
136
136
137
137
@ Parameter (names = {
138
- "--storage-db-synchronous" }, description = "Storage db is synchronous or not.(true or flase )" )
138
+ "--storage-db-synchronous" }, description = "Storage db is synchronous or not.(true or false )" )
139
139
private String storageDbSynchronous = "" ;
140
140
141
141
@ Parameter (names = {
142
- "--contract-parse-enable" }, description = "enable contract parses in java-tron or not.(true or flase )" )
142
+ "--contract-parse-enable" }, description = "enable contract parses in java-tron or not.(true or false )" )
143
143
private String contractParseEnable = "" ;
144
144
145
145
@ Parameter (names = {"--storage-index-directory" }, description = "Storage index directory" )
Original file line number Diff line number Diff line change @@ -39,10 +39,15 @@ public TransactionInfoCapsule getTransactionInfo(byte[] key) throws BadItemExcep
39
39
return null ;
40
40
}
41
41
byte [] value = revokingDB .getUnchecked (ByteArray .fromLong (blockNumber ));
42
+ if (Objects .isNull (value )) {
43
+ return null ;
44
+ }
45
+
42
46
TransactionRetCapsule result = new TransactionRetCapsule (value );
43
47
if (Objects .isNull (result ) || Objects .isNull (result .getInstance ())) {
44
48
return null ;
45
49
}
50
+
46
51
for (TransactionInfo transactionResultInfo : result .getInstance ().getTransactioninfoList ()) {
47
52
if (transactionResultInfo .getId ().equals (ByteString .copyFrom (key ))) {
48
53
return new TransactionInfoCapsule (transactionResultInfo );
You can’t perform that action at this time.
0 commit comments