fix photo camera null pointer