mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 05:49:40 +08:00
fix: panic by nil pointer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user