mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 21:47:18 +00:00
Don't crash if trying to print a transaction with no inputs
This commit is contained in:
@@ -491,6 +491,10 @@ public class Transaction extends ChildMessage implements Serializable {
|
||||
s.append(" ");
|
||||
s.append(getHashAsString());
|
||||
s.append("\n");
|
||||
if (inputs.size() == 0) {
|
||||
s.append(" INCOMPLETE: No inputs!\n");
|
||||
return s.toString();
|
||||
}
|
||||
if (isCoinBase()) {
|
||||
String script;
|
||||
String script2;
|
||||
|
||||
Reference in New Issue
Block a user