From: shingil.kang Date: Wed, 26 Jun 2013 19:00:05 +0000 (+0900) Subject: [Title] check if SyncProgressMonitor is null when pushing a file. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7af43444d7afdc252acab095fd60c18e1bd0aa2c;p=sdk%2Fide%2Fcommon-eplugin.git [Title] check if SyncProgressMonitor is null when pushing a file. [Desc.] [Issue] Change-Id: I2b0a6eb720a2477ac3916111c78da8eebfa08e70 --- diff --git a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/SyncService.java b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/SyncService.java index 4934019..0b5d848 100644 --- a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/SyncService.java +++ b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/SyncService.java @@ -606,10 +606,12 @@ implements Closeable doPush( final InputStream in, final FileEntry remote, - final ISyncProgressMonitor monitor, + ISyncProgressMonitor monitor, final int timeOut ) { + monitor = nvl( monitor, NullSyncProgressMonitor.getInstance() ); + final long startTime = System.currentTimeMillis(); Log.d( "sync", "start at " + startTime + " ms" ); FileEntryOutputStream out = null;