Merge "sdm: Handle non fatal error and fix crash due to uninitialized pointer"