better checking for null values. found and fixed reported by Victor Tarasov <vtarasov@idealx.com>
better checking for null values.
found and fixed reported by Victor Tarasov <vtarasov@idealx.com>


git-svn-id: 444ed946b9c2220da791e84c3dd156a05f92db99@1777 c6295689-39f2-0310-b995-f0e70906c6a9

OpenSC/OpenSC,l1k/OpenSC,hongquan/OpenSC-main,tidatida/OpenSC,financeX/OpenSC,carlhoerberg/OpenSC,UIKit0/OpenSC,metsma/OpenSC,velter/OpenSC,hhonkanen/OpenSC,0x7678/myOpenSC,CardContact/OpenSC,financeX/OpenSC,aobaid/OpenSC,CardContact/OpenSC,dirkx/OpenSC.tokend,marschap/pkg-opensc,metsma/OpenSC,ieugen/OpenSC,aobaid/OpenSC,jpki/OpenSC,martinpaljak/OpenSC,ieugen/OpenSC,0x7678/myOpenSC,tidatida/OpenSC,OpenSC/OpenSC,l1k/OpenSC,fabled/OpenSC,dirkx/OpenSC.tokend,0x7678/myOpenSC,carlhoerberg/OpenSC,dengert/OpenSC,philipWendland/OpenSC,l1k/OpenSC,adminmt/OpenSC,hhonkanen/OpenSC,gentoo/OpenSC,nmav/OpenSC,tidatida/OpenSC,dirkx/OpenSC.tokend,fabled/OpenSC,gemini/OpenSC,tidatida/OpenSC,marschap/pkg-opensc,rickyepoderi/OpenSC,germanblanco/OpenSC,hhonkanen/OpenSC,philipWendland/OpenSC,gentoo/OpenSC,kasparsd/opensc-latvia-id,ieugen/OpenSC,mouse07410/OpenSC,nmav/OpenSC,jpki/OpenSC,0x7678/OpenSC,gemini/OpenSC,frankmorgner/OpenSC,ieugen/OpenSC,metsma/OpenSC,gemini/OpenSC,hongquan/OpenSC-main,nmav/OpenSC,gentoo/OpenSC,aobaid/OpenSC,AktivCo/OpenSC,financeX/OpenSC,0x7678/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,viktorTarasov/OpenSC-SM,kasparsd/opensc-latvia-id,gentoo/OpenSC,rickyepoderi/OpenSC,AktivCo/OpenSC,velter/OpenSC,OpenSC/OpenSC,mouse07410/OpenSC,UIKit0/OpenSC,UIKit0/OpenSC,dirkx/OpenSC,dengert/OpenSC,adminmt/OpenSC,jpki/OpenSC,dirkx/OpenSC,adminmt/OpenSC,financeX/OpenSC,kasparsd/opensc-latvia-id,fabled/OpenSC,ieugen/OpenSC,dirkx/OpenSC.tokend,0x7678/OpenSC,velter/OpenSC,velter/OpenSC,martinpaljak/OpenSC,marschap/pkg-opensc,hongquan/OpenSC-main,viktorTarasov/OpenSC-SM,mtrojnar/OpenSC,philipWendland/OpenSC,0x7678/OpenSC,dirkx/OpenSC,Jakuje/OpenSC,Jakuje/OpenSC,Jakuje/OpenSC,adminmt/OpenSC,UIKit0/OpenSC,LudovicRousseau/OpenSC,germanblanco/OpenSC,frankmorgner/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,germanblanco/OpenSC,rickyepoderi/OpenSC,dirkx/OpenSC.tokend,fabled/OpenSC,mtrojnar/OpenSC,marschap/pkg-opensc,carlhoerberg/OpenSC,carlhoerberg/OpenSC,dirkx/OpenSC,mtrojnar/OpenSC,gentoo/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,carlhoerberg/OpenSC,dirkx/OpenSC,aobaid/OpenSC,martinpaljak/OpenSC,CardContact/OpenSC,viktorTarasov/OpenSC-SM,LudovicRousseau/OpenSC,kasparsd/opensc-latvia-id,0x7678/myOpenSC,0x7678/myOpenSC,financeX/OpenSC,dirkx/OpenSC.tokend,AktivCo/OpenSC