fix silly errors in export
change Qt-message logging to allow for null values