Can that exception happen? In the docs in says only "if IP address is of illegal length". But maybe it's better this way as we never know what else Java is hiding behind it...