FIX NPE in validator