Skip to content
Browse files

TIMOB-4724 Do null check on attachments collection before trying to g…

…et attachment URIs.
  • Loading branch information...
1 parent f554c10 commit 97c36894d7f9b6fda54dfa53955a8f7d122706fd @billdawson billdawson committed with donthorp Jul 20, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 android/modules/ui/src/ti/modules/titanium/ui/EmailDialogProxy.java
View
3 android/modules/ui/src/ti/modules/titanium/ui/EmailDialogProxy.java
@@ -247,6 +247,9 @@ private Uri getAttachmentUri(Object attachment)
private ArrayList<Uri> getAttachmentUris()
{
+ if (attachments == null) {
+ return null;
+ }
ArrayList<Uri> uris = new ArrayList<Uri>();
for (Object attachment : attachments) {
Uri uri = getAttachmentUri(attachment);

0 comments on commit 97c3689

Please sign in to comment.
Something went wrong with that request. Please try again.