avoid nullpointer in case no profiling service is configured
avoid nullpointer in case no profiling service is configured
test cases