Fixed an npe that can occur in saveMapping() if the user has not clicked on "Get tables" in the mapping editor dialog before saving the mapping.