throw IllegalArgumentException with proper message instead of NPE