This bug can be reproduce with a library file (.sld) that has exactly zero characters in it, when importing it.