[Title] Added length check for showing dialog
authorkh5325.kim <kh5325.kim@samsung.com>
Wed, 22 Aug 2012 11:56:13 +0000 (20:56 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Wed, 22 Aug 2012 11:56:13 +0000 (20:56 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java

index 092afb0..f858014 100644 (file)
@@ -125,7 +125,8 @@ public class TizenRemoteFileDialog {
         selectDefaultPath(defaultExpandedPath);
 
         // set default path to the top item.
-        pathTreeViewer.getTree().setTopItem(pathTree.getSelection()[0]);
+        if (pathTree.getSelection().length > 0)
+            pathTreeViewer.getTree().setTopItem(pathTree.getSelection()[0]);
 
         remoteContentProvider.setInitialize(true);
         pathTreeViewer.refresh();