diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ConfigurationStore.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ConfigurationStore.java index 6de40f77f7..47188c3589 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ConfigurationStore.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ConfigurationStore.java @@ -69,7 +69,7 @@ public ConfigurationStore(String identifier, Client client, IPreferenceStore pre // make one active (and there always must be one active) this.active = configSet.lookup(preferences.getString(identifier + KEY_ACTIVE)) .orElseGet(() -> configSet.getConfigurations().findFirst().orElseGet(() -> { - Configuration defaultConfig = new Configuration(Messages.ConfigurationStandard, null); + Configuration defaultConfig = new Configuration(Messages.ConfigurationStandard, ""); //$NON-NLS-1$ configSet.add(defaultConfig); return defaultConfig; })); @@ -202,7 +202,7 @@ private void delete(Configuration config) listeners.forEach(ConfigurationStoreOwner::beforeConfigurationPicked); active = configSet.getConfigurations().findAny().orElseGet(() -> { - Configuration defaultConfig = new Configuration(Messages.ConfigurationStandard, null); + Configuration defaultConfig = new Configuration(Messages.ConfigurationStandard, ""); //$NON-NLS-1$ configSet.add(defaultConfig); return defaultConfig; }); diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/ChartWidget.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/ChartWidget.java index c23ed529c9..70915d91c9 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/ChartWidget.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/ChartWidget.java @@ -67,7 +67,7 @@ public ChartConfig(WidgetDelegate delegate, DataSeries.UseCase useCase) configSet = delegate.getClient().getSettings().getConfigurationSet(configName); String uuid = delegate.getWidget().getConfiguration().get(Dashboard.Config.CONFIG_UUID.name()); config = configSet.lookup(uuid).orElseGet(() -> configSet.getConfigurations().findFirst() - .orElseGet(() -> new ConfigurationSet.Configuration(Messages.LabelNoName, null))); + .orElseGet(() -> new ConfigurationSet.Configuration(Messages.LabelNoName, ""))); //$NON-NLS-1$ addConfig(new ChartShowYAxisConfig(delegate, false)); }