There needs to be a return NULL here to avoid compiler warnings and before that, pls put an SG_ERROR("View creation not supported yet")