mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Catch exceptions
This commit is contained in:
parent
08e24d31a5
commit
82f2d58f58
2 changed files with 7 additions and 1 deletions
|
|
@ -82,7 +82,11 @@ public class ContributionController {
|
|||
break;
|
||||
}
|
||||
Log.i("Image", "Image selected");
|
||||
activity.startActivity(shareIntent);
|
||||
try {
|
||||
activity.startActivity(shareIntent);
|
||||
} catch (SecurityException e) {
|
||||
Log.e("ContributionController", "Security Exception", e);
|
||||
}
|
||||
}
|
||||
|
||||
public void saveState(Bundle outState) {
|
||||
|
|
|
|||
|
|
@ -123,6 +123,8 @@ public class UploadController {
|
|||
Log.e("UploadController", "IO Exception: ", e);
|
||||
} catch(NullPointerException e) {
|
||||
Log.e("UploadController", "Null Pointer Exception: ", e);
|
||||
} catch(SecurityException e) {
|
||||
Log.e("UploadController", "Security Exception: ", e);
|
||||
}
|
||||
|
||||
String mimeType = (String)contribution.getTag("mimeType");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue