Merge "Fix potential null ptr after low memory" into sc-dev