just have a look at
CMP-483 - it's not fixed in M3 since the first line of code in the getPrefixQuery-method (ResourcePropertyLookup lookup = mapping.getResourcePropertyLookup(field);...) ist not null-safe (in fact the ResourcePropertyLookup Constructor is not null-safe); so the fix described in
CMP-483 (if (field == null) ....) does not affect anything because a NullPointerEx is thrown