SampEventLogger: NPE bug fixed