summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2012-12-28 04:36:31 (EST)
committermwu2012-12-28 04:36:31 (EST)
commit1eedcefa507003533c42bd182f7394c55534a63e (patch)
treee89f710c7a0a297454fb2560812331fcbbb78580
parenta2de0d99fcbe50a003d4f5124d6fdbd6d38df50e (diff)
downloadorg.eclipse.datatools.enablement.oda-1eedcefa507003533c42bd182f7394c55534a63e.zip
org.eclipse.datatools.enablement.oda-1eedcefa507003533c42bd182f7394c55534a63e.tar.gz
org.eclipse.datatools.enablement.oda-1eedcefa507003533c42bd182f7394c55534a63e.tar.bz2
NPE is thrown out when click "Browse.." button for creating connectionv201212281736
profile in Birt report Documnet data source dlg(T52679)
-rw-r--r--plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
index 5653a0f..5207a9b 100644
--- a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
+++ b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
@@ -535,7 +535,13 @@ public class FolderSelectionPageHelper
}
else if ( e.widget instanceof MenuButton )
{
- handleFileSelection( SELECT_RELATIVE_PATH );
+ if ( ri != null )
+ {
+ handleFileSelection( SELECT_RELATIVE_PATH );
+ }
+ else {
+ handleFileSelection( SELECT_ABSOLUTE_PATH );
+ }
}
}
};