mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 23:03:04 +00:00
Help IntelliJ static analysis understand that nullity is impossible at that point in the code.
This commit is contained in:
parent
d113cbfc66
commit
38b40a245a
@ -142,7 +142,7 @@ public class TransactionOutPoint extends ChildMessage implements Serializable {
|
|||||||
*/
|
*/
|
||||||
public ECKey getConnectedKey(Wallet wallet) throws ScriptException {
|
public ECKey getConnectedKey(Wallet wallet) throws ScriptException {
|
||||||
TransactionOutput connectedOutput = getConnectedOutput();
|
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();
|
Script connectedScript = connectedOutput.getScriptPubKey();
|
||||||
if (connectedScript.isSentToAddress()) {
|
if (connectedScript.isSentToAddress()) {
|
||||||
byte[] addressBytes = connectedScript.getPubKeyHash();
|
byte[] addressBytes = connectedScript.getPubKeyHash();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user