fix missing metadata check
@@ -4177,9 +4177,9 @@ class CoreMetaData(models.Model, RDF_MetaData_Mixin):
if self.subjects.count() == 0:
missing_required_elements.append('Keywords')
elif desired_resource_state == 'published':
- if len(self.title.value) < 30:
+ if not self.title.value or len(self.title.value) < 30:
missing_required_elements.append('The title must be at least 30 characters.')
- if len(self.description.abstract) < 150:
+ if not self.description or len(self.description.abstract) < 150:
missing_required_elements.append('The abstract must be at least 150 characters.')
if self.subjects.count() < 3:
missing_required_elements.append('You must include at least 3 keywords.')
