[apps/editor_controller] Handle deleted scripts in cleanStorageEmptySpace

This commit is contained in:
Léa Saviot
2020-01-09 15:40:53 +01:00
parent d9b284c1ec
commit 8cf13adaf0
2 changed files with 2 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ StackViewController * EditorController::stackController() {
}
void EditorController::cleanStorageEmptySpace() {
if (m_script.isNull()) {
if (m_script.isNull() || !Ion::Storage::sharedStorage()->hasRecord(m_script)) {
return;
}
Ion::Storage::Record::Data scriptValue = m_script.value();