set empty app info if applet not installed

This commit is contained in:
Andrea Franz 2019-03-13 18:12:19 +01:00
parent 2e910d9bb4
commit d6f78d1951
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D

View File

@ -50,6 +50,7 @@ func (cs *CommandSet) Select() error {
cmd.SetLe(0)
resp, err := cs.c.Send(cmd)
if err = cs.checkOK(resp, err); err != nil {
cs.ApplicationInfo = &types.ApplicationInfo{}
return err
}