[apps] VariableBoxController: add assertion: the record corresponding to

a displayed row is not null
This commit is contained in:
Émilie Feral
2018-10-09 11:20:05 +02:00
parent c40ed0c2c0
commit ef05393c9f

View File

@@ -157,6 +157,7 @@ const char * VariableBoxController::extension() const {
}
Storage::Record VariableBoxController::recordAtIndex(int rowIndex) {
assert(!Storage::sharedStorage()->recordWithExtensionAtIndex(extension(), rowIndex).isNull());
return Storage::sharedStorage()->recordWithExtensionAtIndex(extension(), rowIndex);
}