Skip to content

Commit

Permalink
feat(tools): fix NPE for db query
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 committed Sep 10, 2024
1 parent 7af2e63 commit 2096f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/src/main/java/org/tron/plugins/DbQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void print(byte[] k, byte[] b) {
dbName = this.db.getFileName().toString();
}
String key = ByteArray.toHexString(k);
if (b.length == 0) {
if (b == null || b.length == 0) {
spec.commandLine().getOut().format("%s\t%s", dbName, key).println();
logger.info("{}\t{}", dbName, key);
} else {
Expand Down

0 comments on commit 2096f25

Please sign in to comment.