Fix feature remove NPE.

This commit is contained in:
Paulo Gustavo Veiga 2022-12-06 21:47:04 -08:00
parent 9c5130c82c
commit 68866fe4fe

View File

@ -46,6 +46,7 @@ class RemoveFeatureFromTopicCommand extends Command {
execute(commandContext: CommandContext): void {
const topic = commandContext.findTopics([this._topicId])[0];
const feature = topic.findFeatureById(this._featureId);
this._oldFeature = feature;
topic.removeFeature(feature);
}