c0shea / IdParser

Parses PDF417 AAMVA-compliant driver's licenses and ID cards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error getting value from 'PostalCodeDisplay' on 'idParser.Address'

madman29729 opened this issue · comments

using the TEST Application to scan a South Carolina Drivers License using a Keyboard Emulation barcode scanner...

OUTPUT OF THE SCAN LOOKS LIKE

@Ansi 636053060002ID00410228ZT02690036IDDAQ115775955DCSLASTNAMEDACFIRSTNAMDADSHANEDBD02062018DBC1DAYHAZDAU069 inDAGADDRESSDAICITYDAJSTATEDAKPOSTALCODE DAQSEFISEFUOI1029293092938288472991939384882HJDKSDHFKJSHDFK DCM****DDAFDDB03929382883991SASD

After hitting Parse.. I get this

System.NullReferenceException: 'Object reference not set to an instance of an object.'

IdParser.Address.PostalCode.get returned null.

Figured out the problem.. the test application enters all data on 1 line.. Scanned the ID into notepad and it scans correctly and the test application is able to parse it...

problem is the HID Keyboard tab when you scan the barcode ALL the data is filled on 1 line which breaks the application..