Project

General

Profile

Revision 260688cb

ID260688cba39cbf439bd3e2ec7a22bbd0b49544ec
Parent 18154a72
Child 86aaf6da

Added by Patrick Plitzner almost 2 years ago

ref #7887 Catch potential preference initialization problem

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
22 22
import java.util.List;
23 23
import java.util.Map;
24 24
import java.util.Properties;
25
import java.util.Set;
26 25
import java.util.StringTokenizer;
27 26
import java.util.UUID;
28 27

  
......
1928 1927
            String[] uuidArray = preference.getValue().split(";");
1929 1928
            List<UUID> uuidList = new ArrayList();
1930 1929
            for (String uuidString:uuidArray){
1931
                uuidList.add(UUID.fromString(uuidString));
1930
                try {
1931
                    uuidList.add(UUID.fromString(uuidString));
1932
                } catch (Exception e) {
1933
                    logger.warn("Preference loading failed", e);
1934
                }
1932 1935
            }
1933 1936

  
1934 1937
            List<DefinedTermBase> definedTermBases = termService.load(uuidList, null);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)