changed NPE to IllegalArgumentException in Utils