Because of lack of checking if md is nullptr or not, calling directly md->playbackVolume() was causing Segment fault.