Project

General

Profile

Revision 2470b75b

ID2470b75b282ae6caa910744fb0fc14d8b1165411
Parent ec6c94b9
Child ebb78401

Added by Katja Luther 10 months ago

fix #7999: fix NPE in namedetailsview config when no db pref available

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/NameDetailsViewAdminConfiguration.java
74 74
            IPreferenceService service = controller.getPreferenceService();
75 75
            PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), EditorPreferencePredicate.NameDetailsView);
76 76
            CdmPreference pref = service.find(key);
77
            if (pref != null) {
78
                isAllowOverride = pref.isAllowOverride();
79
                CdmPreferenceCache cache = CdmPreferenceCache.instance();
80
                cache.put(pref);
81
            }
82

  
77 83

  
78
            isAllowOverride = pref.isAllowOverride();
79
            CdmPreferenceCache cache = CdmPreferenceCache.instance();
80
            cache.put(pref);
81 84
        }
82 85
        nameDetailsConfig = PreferencesUtil.getPreferredNameDetailsConfiguration(false);
83 86
        if (nameDetailsConfig == null){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)