private void setUri(CoinURI coinUri) throws CoinURIParseException { setAddress(coinUri.getAddress(), false); if (address == null) { // TODO when going to support the payment protocol, address could be null throw new CoinURIParseException("missing address"); } sendAmountType = (CoinType) address.getParameters(); sendAmount = coinUri.getAmount(); final String label = coinUri.getLabel(); }