Skip to content
Snippets Groups Projects
Commit 3249fc3b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

camera, profile: check for null

Change-Id: I2e10969909e1502c5d577432a3d7add1b92bd154
parent adc1fca7
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ abstract public class CameraService {
}
public boolean isPreviewFromFrontCamera() {
return mNativeParams.size() == 1 || currentCamera.equals(cameraFront);
return mNativeParams.size() == 1 || (currentCamera != null && currentCamera.equals(cameraFront));
}
public Map<String, StringMap> getPreviewSettings() {
......
......@@ -67,6 +67,7 @@ public class ProfileCreationPresenter extends RootPresenter<ProfileCreationView>
}
public void fullNameUpdated(String fullName) {
if (mAccountCreationModel != null)
mAccountCreationModel.setFullName(fullName);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment