Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Implement guard for #165
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaswenz committed Aug 25, 2016
1 parent 83f2558 commit 39000d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public void onCreate(Bundle savedInstanceState) {

/* Get image path. */
Bundle extras = getIntent().getExtras();
if (extras == null || extras.getParcelable(EXTRA_IMAGE_URI) == null) {
HockeyLog.error("Can't set up PaintActivity as image extra was not provided!");
return;
}

Uri imageUri = extras.getParcelable(EXTRA_IMAGE_URI);

mImageName = determineFilename(imageUri, imageUri.getLastPathSegment());
Expand Down

0 comments on commit 39000d6

Please sign in to comment.