fix: panic by nil pointer

This commit is contained in:
lilong.129
2024-09-12 11:12:05 +08:00
parent 6f6cefe4bc
commit a87a4ea680
4 changed files with 20 additions and 6 deletions

View File

@@ -8,5 +8,8 @@ import (
func (dExt *DriverExt) Input(text string) (err error) {
err = dExt.Driver.Input(text)
return errors.Wrap(code.MobileUIInputError, err.Error())
if err != nil {
return errors.Wrap(code.MobileUIInputError, err.Error())
}
return nil
}