#vulnerable code 
                             @Override
	public boolean deleteLogic(@NotEmpty List<Integer> ids) {
		BladeUser user = SecureUtil.getUser();
		T entity = BeanUtil.newInstance(modelClass);
		entity.setUpdateUser(user.getUserId());
		entity.setUpdateTime(LocalDateTime.now());
		return super.update(entity, Wrappers.<T>update().lambda().in(T::getId, ids)) && super.removeByIds(ids);
	} 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Override
	public boolean deleteLogic(@NotEmpty List<Integer> ids) {
		BladeUser user = SecureUtil.getUser();
		T entity = BeanUtil.newInstance(modelClass);
		entity.setUpdateUser(Objects.requireNonNull(user).getUserId());
		entity.setUpdateTime(LocalDateTime.now());
		return super.removeByIds(ids);
	}