Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Buschtöns2013-10-30 06:00:29 -0400
committerTim Buschtöns2013-10-30 06:02:40 -0400
commit46c1d70c16ea0531877928437ee046b552122067 (patch)
treef15ec6ba66c9169c8128deded042d43206350f1f
parent04be7a1cd607f80338e4268da972593a6775f9f6 (diff)
downloadorg.eclipse.rap.incubator.dropdown-DropDownViewer-maintenance.tar.gz
org.eclipse.rap.incubator.dropdown-DropDownViewer-maintenance.tar.xz
org.eclipse.rap.incubator.dropdown-DropDownViewer-maintenance.zip
Prevent crash in case the DropDown was not added to themeable widgetsDropDownViewer-maintenance
-rw-r--r--bundles/org.eclipse.rap.addons.dropdown/js/rwt/dropdown/DropDown.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.rap.addons.dropdown/js/rwt/dropdown/DropDown.js b/bundles/org.eclipse.rap.addons.dropdown/js/rwt/dropdown/DropDown.js
index dc71780..99d8a8b 100644
--- a/bundles/org.eclipse.rap.addons.dropdown/js/rwt/dropdown/DropDown.js
+++ b/bundles/org.eclipse.rap.addons.dropdown/js/rwt/dropdown/DropDown.js
@@ -20,10 +20,12 @@
var getStyleMap = function() {
if( styleMap == null ) {
var manager = rwt.theme.AppearanceManager.getInstance();
- styleMap = {};
try {
styleMap = manager.styleFrom( "dropdown", {} );
} catch( ex ) {
+ }
+ if( styleMap == null ) {
+ styleMap = {};
styleMap.border = new rwt.html.Border( 1, "solid", "#000000" );
}
styleMap.padding = getPadding();

Back to the top