Fixed NPE for primitives-only views