From: David A. Velasco Date: Tue, 20 Nov 2012 13:48:44 +0000 (+0100) Subject: Fixed crash in initialization of FileObserverService X-Git-Tag: oc-android-1.4.3~94 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/9c3dc6d8503fad94b2bbfdfc26ecd0153f6e0e00?ds=inline;hp=-c Fixed crash in initialization of FileObserverService --- 9c3dc6d8503fad94b2bbfdfc26ecd0153f6e0e00 diff --git a/src/com/owncloud/android/files/services/FileObserverService.java b/src/com/owncloud/android/files/services/FileObserverService.java index a4d12fd4..3cadc568 100644 --- a/src/com/owncloud/android/files/services/FileObserverService.java +++ b/src/com/owncloud/android/files/services/FileObserverService.java @@ -155,6 +155,8 @@ public class FileObserverService extends Service { continue; String path = c.getString(c.getColumnIndex(ProviderTableMeta.FILE_STORAGE_PATH)); + if (path == null || path.length() <= 0) + continue; OwnCloudFileObserver observer = new OwnCloudFileObserver( path, account,