code: protected Object convertNullValue(Class type) throws ConversionException {
          try {
              return type.isPrimitive() ? Array.get(Array.newInstance(type, 1), 0) : null;
          } catch (Exception e) {
              throw new ConversionException(String.format("Could not convert null to primitive type <%s>", type), e);
          }
      }
docs: Convert null to given type.
  
  @throws ConversionException if any occurs.