Revision 89000ff8
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java | ||
---|---|---|
121 | 121 |
String titleSearchString = configurator.getTitleSearchString(); |
122 | 122 |
try { |
123 | 123 |
UUID uuid = UUID.fromString(titleSearchString); |
124 |
records.add(CdmStore.getService(service).find(uuid)); |
|
124 |
T foundRecord = CdmStore.getService(service).find(uuid); |
|
125 |
if(foundRecord!=null){ |
|
126 |
records.add(foundRecord); |
|
127 |
} |
|
125 | 128 |
} catch (IllegalArgumentException e) { |
126 | 129 |
//search string was no UUID |
127 | 130 |
} |
Also available in: Unified diff
Fixed potnetial NPE