Fix null pointer exception in sld editor