If you pass-in a .psd that has one layer that is empty it crashes with:
Error #2030: File ending has been detected
at flash.utils::ByteArray?/readShort()
at com.voidelement.images.psd.layer::LayerPixelData?()[:53]
at com.voidelement.images.psd.section::PSDLayerAndMask/parseLayerInfo()[:75]
at com.voidelement.images.psd.section::PSDLayerAndMask()[:48]
at com.voidelement.images.psd::PSDParser()[:57]
at at.leichtgewicht.libspark.psdParser::PSDInfoOutput/setInfo()[:105]
at Example/handleFileChange()[:94]
at flash.events::EventDispatcher?/dispatchEventFunction()
at flash.events::EventDispatcher?/dispatchEvent()
at at.leichtgewicht.ui.component.lgw::LGWFileChooser/handleFileComplete()[X:\Documents\work\PSDParser