public IPAddress getAddress(IPVersion version) throws IncompatibleAddressException {
		if(!addressProvider.isInvalid()) { // Avoid the exception the second time with this check
			try {
				return toAddress(version);
			} catch(AddressStringException e) { /* note that this exception is cached, it is not lost forever */ }
		}
		return null;
	}
public IPAddress getAddress ( IPVersion version ) throws IncompatibleAddressException { if ( ! addressProvider . isInvalid ( ) ) { try { return toAddress ( version ) ; } catch ( AddressStringException e ) { } } return null ; }
Similar to {@link #toAddress(inet.ipaddr.IPAddress.IPVersion)}, but returns null rather than throwing an exception with the address is invalid or does not match the supplied version.