[SPARK-3705]add case for VoidObjectInspector to cover NullType

add case for VoidObjectInspector in ```inspectorToDataType```