diff --git a/core/src/main/java/com/google/bitcoin/core/Transaction.java b/core/src/main/java/com/google/bitcoin/core/Transaction.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/com/google/bitcoin/core/Transaction.java
+++ b/core/src/main/java/com/google/bitcoin/core/Transaction.java
@@ -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;
Don't crash if trying to print a transaction with no inputs