X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/37f0586c47ab5c2b8f47a4b286b5c0df06b27c12..7d67737a4fed1e6484d668ef55ca10b57cabbe7b:/src/com/owncloud/android/DisplayUtils.java diff --git a/src/com/owncloud/android/DisplayUtils.java b/src/com/owncloud/android/DisplayUtils.java index f436852f..0e1b2b64 100644 --- a/src/com/owncloud/android/DisplayUtils.java +++ b/src/com/owncloud/android/DisplayUtils.java @@ -1,10 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2011 Bartek Przybylski - * Copyright (2) 2012-2013 ownCloud Inc. + * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or + * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -145,7 +145,7 @@ public class DisplayUtils { } else { String [] parts = mimetype.split("/"); String type = parts[0]; - String subtype = parts[1]; + String subtype = (parts.length > 0) ? parts[1] : ""; if(TYPE_TXT.equals(type)) { return R.drawable.file_doc;