If StepSignature's precheck fails, the variable 'signature_' is not initialized
Change-Id: Ie605111e8572e6d7ccf5e8e161fa5e6f29b13dee
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
}
Step::Status StepSignature::undo() {
}
Step::Status StepSignature::undo() {
+ if (signature_ == nullptr)
+ return Step::Status::OK;
+
bf::remove(signature_->GetFilePath());
if (bf::exists(signature_->GetBackupPath()))
bf::rename(signature_->GetBackupPath(), signature_->GetFilePath());
bf::remove(signature_->GetFilePath());
if (bf::exists(signature_->GetBackupPath()))
bf::rename(signature_->GetBackupPath(), signature_->GetFilePath());