3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

Help IntelliJ static analysis understand that nullity is impossible at that point in the code.

This commit is contained in:
Mike Hearn 2013-04-26 13:46:57 +02:00
parent d113cbfc66
commit 38b40a245a

View File

@ -142,7 +142,7 @@ public class TransactionOutPoint extends ChildMessage implements Serializable {
*/
public ECKey getConnectedKey(Wallet wallet) throws ScriptException {
TransactionOutput connectedOutput = getConnectedOutput();
checkState(connectedOutput != null, "Input is not connected in wallet so cannot retrieve connected key");
checkNotNull(connectedOutput, "Input is not connected so cannot retrieve key");
Script connectedScript = connectedOutput.getScriptPubKey();
if (connectedScript.isSentToAddress()) {
byte[] addressBytes = connectedScript.getPubKeyHash();