Код: Выделить всё
@Query(value = """
INSERT INTO users(id, customerId, locale) VALUES (:id, :customerId, :locale)
""", nativeQuery = true)
void create(@Param("id") Long id,
@Param("customerId") String customerId,
@Param("locale") String locale,
.........
profileRepository.create(
profile.getId(),
profile.getCustomerId(),
profile.getLocale())
Код: Выделить всё
java.lang.NullPointerException: Cannot invoke "com.User.getCustomerId()" because the return value of "com.User.getCustomerId()" is null
Подробнее здесь: https://stackoverflow.com/questions/791 ... id-because