NPE in getValue