Merge "Adding nullptr check in Image_getHardwareBuffer() and Image_getFormat()." into main