Commit f2f56c04 authored by narinder Rana's avatar narinder Rana
Browse files

null check

parent a8941f28
Pipeline #133004 failed with stage
in 7 seconds
......@@ -63,18 +63,20 @@ public class FileObserverService extends Service {
Log.d("OnEvent", "...Event ..." + event+"...file ..." + file);
SyncedFileState syncedFileStates = DbHelper.loadSyncedFile(getApplicationContext(), file.getAbsolutePath(), true);
SyncedFileState syncedFileStates = DbHelper.loadSyncedFile(getApplicationContext(), file.getPath(), true);
syncedFileStatesList.add(syncedFileStates);
if(null!=syncedFileStates){
syncedFileStatesList.add(syncedFileStates);
}
files.add(file);
//Check internet
// Add event in List<File>
//InitializerService.fileObserver.add(file);
//call to ObserverService >> getSyncedFileState >> HandleLocal File
try
{
if(observerFlag == -1){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment