/** * Throws an exception if the given address is invalid. * We explicitly allow <code>null</code> here, * because we want to allow to set the address in a lazy fashion. * @param address to be checked for validity */ private static void checkAddress(final String address) { // NOTE We explicitly allow <code>null</code> here, // because we want to allow to set in a lazy fashion. if ((address != null) && !isValidAddress(address)) { throw new IllegalArgumentException("Not a valid OSC address: " + address); } }